-
Notifications
You must be signed in to change notification settings - Fork 253
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
Rotations: Deprecated timezone leading to text rendering issues #38
Comments
We could probably look at embedding tzdata in the backend and using that. Postgres is only used because we can list them easily. However, all TZ-type calculations happen in GoAlert itself, which then uses whatever is available on the system. In the official container, which is based on Alpine, the package uses the IANA db: But if we embed it, we can guarantee GoAlert will have the same TZ data for a particular version/binary on all systems & environments. It also has a list of linked non-canonical names we can use. We might still have issues on windows systems unless Chrome & friends have their own TZ data. If we go forward with that, then next steps would be:
|
Reminder: When we do implement a fix for this, include a migration that maps deprecated timezones as appropriate (in the case there is existing deprecated timezone data). |
This issue has been automatically marked as stale because it has not had recent activity. |
Migration queries have been generated here: https://github.com/target/goalert/compare/tzmigrate |
This issue has been automatically marked as stale because it has not had recent activity. |
This issue has been automatically marked as stale because it has not had recent activity. |
Describe the Bug:
Text rendering issues have been observed on some browsers (e.g. Chrome) for deprecated timezones.
This is happening because of some timezones (like
'US/Central'
) being deprecated and hence, not being supported by all browsers, but the backend database (Postgres) still considers them as valid.Steps to Reproduce:
'Hands off....'
'Invalid DateTime US/Central...'
Expected Behavior:
A proper text description for the rotation handoff date and time is expected.
Observed Behavior:
A rendering error is observed in that text with 'null' handoff day of the week and/or 'Invalid DateTime' for timestamp.
Screenshots/Stack Traces:
Application Version:
v0.22.0
Desktop:
Additional Context:
This issue is only limited to the UI. Scheduling still works as intended.
A possible workaround for this issue is to replace the deprecated timezone with it's equivalent non-deprecated one.
For example: Replace
US/Central
withAmerica/Chicago
For more information on which timezones are deprecated and their equivalent zones, please refer to https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
The text was updated successfully, but these errors were encountered: