I am working on a web application where i want to find the local time for different time zones. I am using moment.js in order to accomplish this task. The problem is that returning time does not work as expected. For example:
moment().tz("Europe/London")._d;
will return Thu Aug 15 2013 01:22:23 GMT+0300 (GTB Daylight Time) but at the same time local hour at London is Thu Aug 14 2013 22:22:23 so there is a 3 hour difference. Can anyone explain why this is happening and suggest a solution? Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…