[BUG] displaying Program next run date
Looks like the value for "Next run on ..." is incorrect. The graph properly shows it as "May 10", however, the text displays Tue May 09.
There is a JavaScript function called "Util.dateStringToLocalDate()" that takes in a string value and converts it to a date. The string value that is being passed in is "2017-05-10".
The returned Date object is "Tue May 09 2017 20:00:00 GMT-0400 (Eastern Daylight Time)"
Perhaps the function can be modified as this:
dateStringToLocalDate(dateString){
if(null === dateString){
return null;
} else{
var dt = new Date(dateString);
dt.setTime(dt.getTime() + dt.getTimezoneOffset()*60*1000);
return dt;
}
}
Please sign in to leave a comment.
Comments
2 comments