-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make shift seeds timezone-aware. #298
Comments
timparenti
added a commit
that referenced
this issue
Apr 6, 2019
For consistency with the late shift report and others. Will later tie into other timezone work related to #298.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: