javascript - Why is BST (British Summer Time/Daylight Savings Time) being added to my datetime in node? -


i'm logging out following....

dbresponsestub.starttime = new date(2014,6,13); console.log(dbresponse[0].starttime); console.log(new moment(dbresponse[0].starttime).utc().format()); 

but getting...

fri jun 13 2014 00:00:00 gmt+0100 (bst) 2014-06-12t23:00:00+00:00 

i'm confused because second 1 hour behind should be. bst thing happens in first 1 causing problem. know how turn off in node time be?

dates given in local time.

the first 1 has bst in because showing time zone, , time zone computer configured use.

british summer time hour ahead of coordinated universal time.

if want stay in bst remove .utc() don't convert it.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -