How can i change the timezone without changing the date/time in moment / moment-timezone?
e.g 15/01/2016 09:00:00 +02:00
to e.g 15/01/2016 09:00:00 +00:00
I have tried the solution as posted in the following links post, however this relies on a utcOffset() function which moment complains as being deprecated.
Reading the thread there is an example which states something such as the following might work (but it does not) although i see where the author is going.
moment.tz(moment(date).format("DD/MM/YYYY hh:mm:ss"), "America/Los_Angeles")
This complains of Invalid Date.