I experience strange behavior when trying to get the current date using Date () in javascript. First, I set the time zone for Cuba to
sudo ln -sf /usr/share/zoneinfo/Cuba /etc/localtime
and ran Date() in another console with node.js. That was the result -
> Date() 'Thu Oct 31 2013 06:28:25 GMT+1100 (CDT)'
When changing the time zone
sudo ln -sf /usr/share/zoneinfo/Asia/Vladivostok /etc/localtime
and run Date() again, this is the output -
> Date() 'Thu Oct 31 2013 06:28:31 GMT+1100 (VLAT)'
Can someone explain why this is happening and how can I get time based timezone?
source share