var today = new Date();
var offset = -(today.getTimezoneOffset()/60);
The above code will place the offset in hours in the offset variable in whatever context you made those two calls.
var today = new Date();
var offset = -(today.getTimezoneOffset()/60);
Copyright © 2008 24 Hour Apps
Design by Styleshout
0 comments:
Post a Comment