If you want to obtain the user's timezone offset in JavaScript (that is, the difference between their timezone and Greenwich Mean Time, or GMT), use this snippet:
(new Date().getTimezoneOffset()/60)*(-1)
Wednesday, April 18, 2007
TimeZones in JavaScript
Posted by Thomas at 4/18/2007 07:56:00 PM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment