I'm seeing some confusing behavior:
I'm in the GMT time zone. I turn off my wifi, to make sure the internet isn't messing anything up.
I then load on this code to my application (cross browser, but running on Android):
var todayDate = new Date();
console.log(todayDate);
That gives me this: Thu Jun 22 2017 20:52:02 GMT-0500
. I see this BOTH in the console.log and hovering over it in the Chrome debugger.
However, I now want to change my time zone. So I quit the application, and go to the system settings, and change it to New Zealand time (+12:00). I restart my application, but now I still see this: Thu Jun 22 2017 20:52:02 GMT-0500 (NZST)
. Notice, it picked up the NZST, but still says GMT-0500.
This is a problem, because while the UTC time still works (naturally), the way the existing code is set up, the local time is already stored somewhere else.
I got around this by converting the local time to UTC and calculating the offset, but now when I changed the offset I'm not getting the right time zone (according to the tablet's time zone). Anyone have any ideas?