javascript - Days are getting plus one when printing using angularjs -
i facing weird problem angularjs date format -
following date getting in response -
"start_date":"2014-08-16t18:30:00.000z"
now when applying angularjs date formats filter -
response.data.start_date = $filter('date')(response.data.start_date, 'mm/dd/yyyy');
my date added +1 , showing in form -
08/17/2014
let me know doing wrong here ?
fyi - on local server(localhost) nothing coming server.
the z
on string means it's in "zulu" time (gmt/utc). there timezones 18:30 on 16th gmt is on 17th local time. 1 of places india, gmt+0530 (you've said you're in ist time zone). 18:30 + 5.5 hours = midnight next day, local time in india.
Comments
Post a Comment