Skip to content

Commit

Permalink
Merge pull request #279 from Dynamoid/change-default-application-time…
Browse files Browse the repository at this point in the history
…zone-to-utc

Change default time zone to UTC
  • Loading branch information
andrykonchin committed Jul 25, 2018
2 parents 12b874c + 9b3b25e commit 6a59092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ Listed below are all configuration options.
* `convert_big_decimal` - if `true` then Dynamoid converts numbers stored in `Hash` in `raw` field to float. Default is `false`
* `models_dir` - `dynamoid:create_tables` rake task loads DynamoDb models from this directory. Default is `./app/models`.
* `application_timezone` - Dynamoid converts all `datetime` fields to specified time zone when loads data from the storage.
Acceptable values - `utc`, `local` (to use system time zone) and time zone name e.g. `Eastern Time (US & Canada)`. Default is `local`
Acceptable values - `utc`, `local` (to use system time zone) and time zone name e.g. `Eastern Time (US & Canada)`. Default is `utc`
* `store_datetime_as_string` - if `true` then Dynamoid stores :datetime fields in ISO 8601 string format. Default is `false`
* `store_date_as_string` - if `true` then Dynamoid stores :date fields in ISO 8601 string format. Default is `false`
* `backoff` - is a hash: key is a backoff strategy (symbol), value is parameters for the strategy. Is used in batch operations. Default id `nil`
Expand Down
2 changes: 1 addition & 1 deletion lib/dynamoid/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Config
option :sync_retry_wait_seconds, default: 2
option :convert_big_decimal, default: false
option :models_dir, default: './app/models' # perhaps you keep your dynamoid models in a different directory?
option :application_timezone, default: :local # available values - :utc, :local, time zone names
option :application_timezone, default: :utc # available values - :utc, :local, time zone name like "Hawaii"
option :store_datetime_as_string, default: false # store Time fields in ISO 8601 string format
option :store_date_as_string, default: false # store Date fields in ISO 8601 string format
option :backoff, default: nil # callable object to handle exceeding of table throughput limit
Expand Down

0 comments on commit 6a59092

Please sign in to comment.