Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.1k views
in Technique[技术] by (71.8m points)

django - Why Python pytz package has both Asia/Kolkata and Asia/Calcutta timezones?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

From here:

Oh, I remember this. Asia/Calcutta was used in the tz database until several years ago. Now, Asia/Kolkata replaces this and Asia/Calcutta is in backward file. ICU/CLDR has "stable" ID policy - so ICU/CLDR still uses "Asia/Calcutta" as a "canonical time zone ID" and "Asia/Kolkata" as an alias. So, in ICU, both Asia/Calcutta and Asia/Kolkata work fine - but when you try to get canonical ID via API, it will be "Asia/Calcutta", instead of "Asia/Kolkata"

So it is an alias and not an obsolete name.

It is actually a duplicate of this one


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...