Default Timezone Issues

Describe the problem/error/question

We have multiple issues setting the default timezone via GENERIC_TIMEZONE env var:

  1. everything we have tried thus far results in “Default Timezone not valid” in the timezone listings of workflow settings, including “Etc/GMT”, “Australia/Canberra”

  2. the timezone listing is now in timezone name format, as opposed to timezone offset, which makes trying to find a specific timezone close to impossible, as it is not alphabetical. See image:
    utcetcgmtwtf
    Previous (desired) format:
    timezonenotwtf

  3. Etc/GMT does not even show in the list, despite what is shown above (dark image) - the only reason that Etc/GMT shows above, is that the specific workflow that the screenshot is taken from already had GMT +00:00 (Etc/GMT) set before the listings went to the format shown (dark image).

What is the error message (if any)?

“Default Timezone not valid”

Information on your n8n setup

  • n8n version: 1.51.1
  • Database (default: SQLite): Postgres 16
  • n8n EXECUTIONS_PROCESS setting (default: own, main): queue mode
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: ubuntu 20.04

This was specifically changed because the offset isn’t fixed for all timezones, and we kept getting bug reports about the offsets being incorrect.
Also, the displayed offset wasn’t used anywhere at all, and was meant only to help find relevant timezone quicker.

So, for now we’ve switched to showing just the timezone names (like most other apps and operating systems do).

We’ll look into grouping these or using some other mechanism to make timezone selection easier in the UI.

I’ll check if this is a bug in the code. However, since we are literally copying over the raw timezone names from IANA time zones, it’s entirely possible that we are now missing some non-standard timezone names, and might have to augment the standard list from IANA.

Thank you for the response. If the offset could be added as a hint to the name at least, that would be handy.

I suppose there is an argument that typing the desired timezone by name will find the desired zone (doesn’t work for Etc/GMT, Etc/UTC, for some reason), but that will only work if the TZ in question is part of the list (as you mentioned), but if it doesn’t find it, then if the TZ at least has an offset hint, one would be at least able to use a fallback TZ (with same offset), if the specific one desired is not included.

A couple of follow-ups:

  1. I can’t find the timezone UI change in the release notes - which version did this change come in?

  2. Is the inability to select Etc/UTC or Etc/GMT unique to our instance, or is that something that needs to be fixed in core?

Any update on the above?

I’ve found recently that in my case GENERIC_TIMEZONE=Australia/Brisbane works only when added directly via docker compose (with no quotes), but won’t work for some reason when using an env variable ( ie. ${TIMEZONE} ).

Checked typos and tested other timezones and got the same result, but not ruling out user error :slight_smile:

Running self-hosted on the latest docker image, ubuntu 22 if that helps.

do either of the Etc/* values work for you? They don’t for us.

Etc values don’t seem to be visible as an option on my end, seems like it has been removed as a feature @netroy mentioned above?

I don’t see where it’s mentioned that Etc/* values have been removed, only that offsets were.

The change was in 1.51.0 and is likely this one: refactor(core): Use use up-to-date timezone data by netroy · Pull Request #10073 · n8n-io/n8n · GitHub

This package doesn’t suppor Etc options which is why they are not included, Looking at the list of timezone standards “Australia/Canberra” is not an official timezone and it is instead a link to “Australia/Sydney”.

“Australia/Brisbane” is a canonical timezone and is included in the data, Don’t use quotes when setting the timezone as that can also cause issues.

1 Like

More importantly than “Australia/Canberra” we need Etc values, and we were able to use them previously, even if by offset.

Are users supposed to find some random TZ to use instead of Etc/* and hope they don’t have deviations?

This is a regression.

Hey @finganinja,

When you say you need Etc values can you share more information on that? We can of course look at adding them in as they are part of the IANA list but at the same time there is a published list of timezones and what they link to or if they are canonical which removes issues with deviations and it means you likely won’t need to remember to update your timezone which I would expect if you were usign Etc values.

We can explicitly add Etc/UTC and Etc/GMT. Do you think you also need all the GMT offset timezones as well like Etc/GMT-14, Etc/GMT+6, etc ?

2 Likes

A lot of focus for us is around UTC.
When I mentioned the Canberra timezone that was just another example that I would expect to work, even though it is non-canonical - it is still a linked TZ.
But it is not something that we cannot work around.

The UTC issue is something that cannot be worked around, and all new workflows can’t currently be set to UTC.

The addition of all formats you mentioned would be great, thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.