javascript - How to retain timezone when formatting a date in moment.js? -


i have date 2015-10-24t17:12-05:00 , i'm using moment.js format this:

moment('2015-10-24t17:12-05:00').format('h:mm a'); 

instead of showing time in timezone specified in string, moment.js seems converting timezone of computer. how can preserve timezone when formatting?


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -