I am using moment JS to handle my dates.
Setup :
One DateTime input element One Time Input Element
Lets says I have these values :
DateTime = "05/30/2016" and StartTime = "10:00";
I am doing this to convert from local time to UTC time :
utcTime = moment(DateStart+ " " + StartTime).toDate().toISOString(),
but when print the utcTime value I am getting, "2016-05-30T10:00:00+01:00" That +01:00 , is messing up my time when passing it back to the server (hosted in the same machine as the client, development machine) when I get the data back in the server it reports back as 9H instead of 10H , due to the +1 offset. My time zone is set to 0 (LISBON timezone), so the offset should be 0.
Is there something that I am missing?