jimfog Posted July 22, 2011 Share Posted July 22, 2011 IS there sth in the source code of a site that tells sth about its timezone,and, subsequently getting thatwith a javascript script(that last one, is in itself a different topic).So primarily, i am concerned about the first thing. Link to comment Share on other sites More sharing options...
justsomeguy Posted July 22, 2011 Share Posted July 22, 2011 Look at the date object:http://www.w3schools.com/jsref/jsref_obj_date.asp Link to comment Share on other sites More sharing options...
jeffman Posted July 22, 2011 Share Posted July 22, 2011 Keep in mind that if your user's OS has the wrong time settings, JavaScript has no way of knowing the correct time. If knowing the timezone is critical, you might want to embed a little server-side code into your document. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.