Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fixed default value for `Store#timezone`

Damian Legawiecca5fb2622c7d
diff --git a/core/app/models/spree/store.rb b/core/app/models/spree/store.rb
index 810f46f899..4642023cbf 100644
--- a/core/app/models/spree/store.rb
+++ b/core/app/models/spree/store.rb
@@ -28,7 +28,7 @@ module Spree
s.integer :digital_asset_link_expire_time, default: 300, null: false # 5 minutes in seconds
# store configuration
- s.string :timezone, default: -> { Time.zone.name }, null: false
+ s.string :timezone, default: Time.zone.name, null: false
s.string :weight_unit, default: 'kg', null: false
s.string :unit_system, default: 'metric', null: false
end