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
If the OpenWISP dashboard or API receives the timezone Asia/Calcutta (now deprecated in most Linux distributions in favor of Asia/Kolkata), it causes upstream errors with InfluxDB or other dependencies. The query fails with an error similar to:
{"error":"error parsing query: unable to find time zone Asia/Calcutta"}
This is due to Asia/Calcutta being a legacy timezone name. Not all systems provide it, and modern distributions expect Asia/Kolkata instead.
Steps To Reproduce
Change the timezone in your browser (or system to Asia/Kolkata)
Suggested resolution:
Implement timezone normalization or input validation in the application code to prevent deprecated or unknown timezones from propagating to InfluxDB. We need to find a list of deprecated timezones.
Describe the bug
If the OpenWISP dashboard or API receives the timezone
Asia/Calcutta(now deprecated in most Linux distributions in favor ofAsia/Kolkata), it causes upstream errors with InfluxDB or other dependencies. The query fails with an error similar to:This is due to
Asia/Calcuttabeing a legacy timezone name. Not all systems provide it, and modern distributions expectAsia/Kolkatainstead.Steps To Reproduce
Asia/Calcutta(see [bug] Time zone error (error parsing query: unable to find time zone) ansible-openwisp2#541)Expected behavior
Normalize deprecated/legacy timezone names to their current valid names before passing to InfluxDB or other backends (
Asia/Calcutta→Asia/Kolkata)References:
Suggested resolution:
Implement timezone normalization or input validation in the application code to prevent deprecated or unknown timezones from propagating to InfluxDB. We need to find a list of deprecated timezones.