Hi Adam, thanks for your comment. We need to separate here 2 things, the date object itself and its representation.

The date object was created from a UTC date, meaning that the parameters sent such as year, month, day, hour, minute, and seconds were specified in UTC.

When we output the date the system will output it in the local timezone date, the reason why you see CET (for my case). But if you pay close attention, the UTC date was “30.09.1998 13:40:05”, but the date representation is “Fri Oct 30 1998 14:40:05 GMT+0100 (Central European Standard Time)”, there’s a difference of one hour, which is the difference between UTC and CET.

I hope that makes sense now, thanks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store