More
Upgrade
Sign In
Sign Up
Visit Blog
Search Website
Clients & Testimonial
Choose Language
API
SDK
Metaverse
Enterprise Bot Platform
Download
Apps
Desktop Download
Chat Bot Wars
Docs & Resources
Help
Bot Libre
Bot Libre
Bot Libre for Business
Bot Libre Metaverse
Language
Help
Search
Blog
Sign Up
Sign In
Upgrade
Partner Program
Bots
Avatars
Deep Learning
Scripts
Live Chat
Forums
Issue Tracking
Graphics
Workspaces
Did you know Bot Libre also provides free hosted
forums
for your own website or mobile app?
Help
settimezone doesn't work
by
zhangzhenslamdunk
posted 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: 1588, today: 1, week: 2, month: 19
Id: 21835448
Posted: Apr 13 2018, 20:05
Replies: 1
Views: 1679, today: 1, week: 2, month: 35
Flag
Thumbs Up
Thumbs Down
Rate
0
0
0.0/5
I'm sure
Delete
Cancel
Flag post as offensive, or in violation of site rules
Flag
Cancel
Browse
Sign In
Sign Up
Browse
Search
Create
Bots
Avatars
Deep Learning
Scripts
Forums
Live Chat
Graphics
Workspaces
Chat Bot Wars
Users
Help
Help
News
Docs
User Manual
Education
Search
API
API Console
SDK
Info
About
Contact
Terms
Privacy
Attribution
Partners
Clients
Links
Features
Download
Enterprise Bot Platform
Metaverse
Apps
Desktop Download
Blog
BotLibre.biz
BotLibre.org
GitHub