【发布时间】:2014-11-18 12:27:00
【问题描述】:
如何在javascript日期对象中格式化时区缩写
在 javascript 中获取 new Date() 对象时,它产生的输出为
Thu Oct 30 2014 00:00:00 GMT+0530 (India Standard Time) 在windows和
Thu Oct 30 2014 00:00:00 GMT+0530 (IST) 在 Linux...
我需要的是 (IST) 中的输出,所以我可以使用 strtotime() 转换日期
【问题讨论】:
-
@Glavić 不,问题是如何在
Date对象的输出中将“India Standard Time”转换为“IST”。这是一个不同的问题,不同的解决方案。
标签: javascript php date timezone strtotime