“Asia/Beijing” doesn’t exist
I was writing a Python script last week and the ORM threw a tantrum, asking for an “offset-aware” datetime.
ChatGPT (GPT-4o) suggested I use the zoneinfo
package and simply specify the name of the timezone.
Naturally, I assumed the timezone name for Beijing would be “Asia/Beijing” and asked GPT-4o for confirmation.
What is the timezone name for Beijing: Asia/Beijing
To be sure, I asked again. (I missed a question mark in my first question, which might have been caused an issue.)
But this didn't work.
Because the timezone for most part of China (+08:00) is actually called “Asia/Shanghai”. Shanghai is the most populous city in mainland China after all.
When I asked again the next day, GPT-4o gave me the correct answer: “Asia/Shanghai”.
So, either hallucinations are random, or the first time ChatGPT thought I was asserting rather than asking.