Timezone management #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Although we are operating across many different time zones at the moment for managing movements, we will want to try and keep it relative to the location of the server. We would want to have the option to set the relative time zone for the app. And then also when something is done, like a movement or a schedule change, we will want it to be done in the relative time zone. Put the time zone selection in the Admin Tools menu. This will be good for the GPS tracking as well. We get the data from where the user is, but we will want to do the math to keep it relative to where the server time is set. I don't want to set the time myself, just the zone of where the app is. (like if it is hosted on a server in NYC, I don't mind if it is, but if I have an event with relative time in Los Angeles I'd like to be able to set that.)
Implemented and deployed!
Changes:
GET /settings/timezone(all users) andPATCH /settings/timezone(admin-only) endpointsUses native
Intl.DateTimeFormatwithtimeZoneoption - no additional libraries needed.Timezone stored in existing PdfSettings model (reuses
timezonefield).