I am doing a simple test (i'm located in France) using moment and moment-timezone (with moment Angular2 libraries).
I'm not succeeding at getting logical results despite whats in the docs.
let timezone = moment.tz.guess();
console.log(timezone); // ok: Europe/Paris
let now = moment();
let nowFr = now.tz(timezone); // docs: should convert to time zone
// both display UTC format (13pm instead of 15pm local time)
console.log(now.toISOString());
console.log(nowFr.toISOString());
// first show 13pm, second 15pm
// this works, but i'm supposed to be passing ISO string to Ionic2 date picker !!
console.log(now.format());
console.log(nowFr.format());