I am new to node.js and found to my surprise, it doesnt have a strong and environment agnostic way of handling dates.
Given that V8 is being used and node.js is trying to be conformant to how the browser behaves, but why doesnt it make it easy for me out of the box to handle dates with different timezones easily.
I tried it with REPL,
> new Date().getTimezoneOffset()
-330
'Europe/Amsterdam'
> new Date().getTimezoneOffset()
-330
Is there anything i am missing?
Yes there is node-time available, but shouldn't this be part of node.js framework.
Also I could also set the timezone of my server to UTC and make it work.
I may be wrong as well, but its something i have easily handled in PHP or C# and come to expect of it in any server side environment.