JavaScript convert date with local Timezone and legal time offset -


i working on conversion of utc date. date format received server inside json file has following format:

"opendate":"2015-10-26t08:00:00z" 

i translate date using following function:

var mydate = myjson.opendate.tolocalestring(); 

the problem occurs after 25th of october, when legal time changed. after 25th of october dates 1 hour earlier, shouldn't. how can keep consideration change in time? if appointment says 8 a.m. utc should 9 a.m. our timezone, when legal time changed.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -