I'm using Moment and Moment Timezone.
I have a unix timestamp which I then want to add just the timezone offset to, but the offset gets added to the time as well- I don't want this:
var testDateTimeUnix = 1438352400;
// Fri, 31 Jul 2015 14:20:00
var testDateTimeUnixFormatted = moment(testDateTimeUnix, 'X').utc().format()
// "2015-07-31T14:20:00+00:00"
var testDateTimeWithTimezoneOffset = moment(testDateTimeUnixFormatted).utc().tz('Europe/Bucharest').format();
// “2015-07-31T17:20:00+03:00"
The formatted date I want is:
"2015-07-31T14:20:00+03:00"
Any help would be really appreciated.