Download Bot Libre Desktop, your own personal bot for your PC or Mac
Help : settimezone doesn't work

RE: settimezone doesn't work

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?


Id: 21847357
Posted: Apr 14 2018, 11:19
Updated: Apr 14 2018, 11:20
Replies: 0
Views: 1456, today: 2, week: 14, month: 27
0 0 0.0/5