If I want to build a moment object, representing a timestamp in certain time zone, e.g. 2019/04/13 00:00:00 at time zone Europe/Berlin, how do I do it right?
What I'm trying to do:
moment.tz.setDefault('Europe/Berlin');
const m = moment('2019/04/13 00:00:00');
which results in m
being set to Sat Apr 13 2019 02:00:00 GMT+0200 (Central European Summer Time)
- 2 hours ahead of what I need. What I need is 00:00:00 not 02:00:00.
What is the reasoning behind this behavior? How do I tell moment-timezone "take this date and time and interpret it as if it is in the time zone I say"?