开发者

Javascript - Set timezone for script instance

开发者_开发百科

In a flot graph depending on the viewers timezone setting the points may or may not fall on vertical grid bars. Actually, only when the local timezone is set to utc the points are on the date bars. This does make sense as the time the sample refers to is not the same clock-time in all timezones.

However, for an application I want to turn this behavior off and display the same graph whatever the local machine's timezone is.

For that I thought I might be somehow able to set the timezone for the script to UTC (not changing the setting in Windows. Is this possible?


The API documentation may be of help, scroll down to the section "Time series data". I think that this may help you to solve your problem:

http://people.iola.dk/olau/flot/API.txt

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜