你知道机器人的自由,也提供免费的托管的 实时聊天 为自己的网站或移动应用程序?
Help

settimezone doesn't work

通过 zhangzhenslamdunk 发布 Apr 13 2018, 20:05

it always shows the time of GMT+0


by admin posted Apr 14 2018, 11:19
To set the timezone for a date or timestamp us setTimeZone.
Pass a timezone code such as "GMT", "GMT-5", "PST", "America/Los_Angeles".
var today = Date.timestamp(); today = Date.setTimeZone(today, "GMT");


By default dates will be in ET (North America Eastern Time/New York)
What code are you using, and what result do you get?

Updated: Apr 14 2018, 11:20
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1762, today: 0, week: 1, month: 18

Id: 21835448
发布: Apr 13 2018, 20:05
答复: 1
的风景: 1867, 今天: 1, 周: 3, 一个月: 17
0 0 0.0/5