You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.
Date.parse("2017-12-16 T01:00:00 UTC");
returns Saturday, December 16, 2017 12:00:00 PM
Date.parse("2017-12-16 T02:00:00 UTC");
returns Saturday, December 16, 2017 12:00:00 PM should return Saturday, December 16, 2017 1:00:00 PM
I fixed manually by creating new Date
function createDate(dateString){
var dateSplit;
var dateObj;
var timeObj;
dateSplit = dateString.split("T");
dateObj = dateSplit[0].split("-");
timeObj = dateSplit[1].replace("Z", "").split(":");
return new Date(Date.UTC(dateObj[0],dateObj[1],dateObj[2],timeObj[0],timeObj[1],timeObj[2]));
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Date.parse("2017-12-16 T01:00:00 UTC");
returns Saturday, December 16, 2017 12:00:00 PM
Date.parse("2017-12-16 T02:00:00 UTC");
returns Saturday, December 16, 2017 12:00:00 PM
should return Saturday, December 16, 2017 1:00:00 PM
I fixed manually by creating new Date
function createDate(dateString){
}
The text was updated successfully, but these errors were encountered: