News for hackers. Stuff that matters.
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.