gpt4 book ai didi

JavaScript 日期显示错误时区 "GMT+0521 (India Standard Time)"

转载 作者:行者123 更新时间:2023-12-03 01:37:05 24 4
gpt4 key购买 nike

我有一个简单的问题。

Why JavaScript show's wrong TimeZone if the date is after the year 1906

Please find the below screenshot for the same.

<小时/>

Chrome Console

最佳答案

来自维基:https://en.wikipedia.org/wiki/Time_in_India

Though British India did not officially adopt the standard time zones until 1905, when the meridian passing east of Allahabad at 82.5° E longitude was picked as the central meridian for India, corresponding to a single time zone for the country (UTC+5:30). Indian Standard Time came into force on 1 January 1906, and also applied to Sri Lanka (then Ceylon). However, Calcutta time was officially maintained as a separate time zone until 1948 and Bombay time until 1955.[8]

Some older time zones were:

Bombay Time (UTC+04:51), Madras Time (UTC+05:21) Calcutta Time (UTC+05:54), Port Blair mean time

关于JavaScript 日期显示错误时区 "GMT+0521 (India Standard Time)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51020995/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com