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
After upgrading to Rails 5+, db/seeds.rb should probably use something like Time.zone.strptime() instead of DateTime.strptime() in order to create timestamps which are properly timezone-aware. This should fix the recurring bug over the last few years which has caused the initially-seeded shifts to end up scheduled 4 hours earlier than desired, since DateTime.strptime() ends up interpreting the local timestamps defined in the CSVs as UTC instead.
Also, grep the repo for all instances of Eastern and New_York to find other similar cases.
The text was updated successfully, but these errors were encountered:
After upgrading to Rails 5+, db/seeds.rb should probably use something like
Time.zone.strptime()
instead ofDateTime.strptime()
in order to create timestamps which are properly timezone-aware. This should fix the recurring bug over the last few years which has caused the initially-seeded shifts to end up scheduled 4 hours earlier than desired, sinceDateTime.strptime()
ends up interpreting the local timestamps defined in the CSVs as UTC instead.Also,
grep
the repo for all instances ofEastern
andNew_York
to find other similar cases.The text was updated successfully, but these errors were encountered: