You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TimeSplitter uses a default time of zero. You can override this by passing your own Time value in a lambda for the default option of split_accessor. Something like default: ->{Time.zone.now}
Hello. Great gem!
You might want to add something about the timezone to the README, because when I first used the gem, it was saving my dates as one day off because my Rails config.time_zone = 'Eastern Time (US & Canada)'. So starting with a default time in UTC and then changing it was causing havoc. Setting default: ->{Time.zone.now} fixed the issue.
Hello,
How can I set timezone?
When I select a date it automatically saves it in UTC format which is wrong here in Sweden.
Thanks!
The text was updated successfully, but these errors were encountered: