Re:JavaScript Internationalization API
by dgl on Thursday December 25, 2014 @05:01PM
(#8797322)
I wish more sites would use this (even with a fallback). Twitter right now is showing me timestamps in Pacific time because they trust their geolocation too much.
[ Parent
| on HN ]
Re:JavaScript Internationalization API
by jrochkind1 on Thursday December 25, 2014 @10:48PM
(#8797967)
Is there anything in these tools that will help web apps determine your timezone any better then they can now? I did't catch that. I'm not sure how they possibly would.
Re:JavaScript Internationalization API
by thomasfoster96 on Friday December 26, 2014 @12:34AM
(#8798165)
Well, I'm not sure if JavaScript's date constructor has issues with accuracy, but I'm pretty sure you can get the timezone offset in minutes using the following:
(new Date()).getTimezoneOffset()
I'd assume it's returning the system time zone offset, and for me it's correct.