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
The setting config :time_zone_info, update: :daily doesn't check for updates at start, right? Users need to wait a day before getting the latest update. Eg I'm now stuck with 2021e.
Might have missed something.
The text was updated successfully, but these errors were encountered:
It was intended that :daily does no update on startup. I want to prevent a tzdb request from being made at every startup. I thought it would be enough if the actual time_zone_info lib always contains the actual tzdb. Especially when I forget to make an update.
You can force an update with:
TimeZoneInfo.update(:force)
Next time I work on TimeZoneInfo I will add update: :on_startup and update: [:on_startup, :daily].
Good question. There was a mistake in my head. I wanted to prevent that in projects that use the library in dev and test always a request is made. But for dev and test you can set :disabled of course. Then TimeZoneInfo can make a request at startup when :daily is set.
So in the end update: :daily should also update at startup.
The setting
config :time_zone_info, update: :daily
doesn't check for updates at start, right? Users need to wait a day before getting the latest update. Eg I'm now stuck with 2021e.Might have missed something.
The text was updated successfully, but these errors were encountered: