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
If timestamp() is called with no parameters the returned date is now minus one month:
} else {
var dt = new Date();
year = dt.getUTCFullYear();
month = dt.getUTCMonth();
day = dt.getUTCDate();
}
/* construct */
var d = new Date(Date.UTC(year, (month - 1), day, hours, minutes, seconds));
Probably the fix can be:
} else {
var dt = new Date();
year = dt.getUTCFullYear();
month = dt.getUTCMonth() + 1; // [1;12] as in NMEA
day = dt.getUTCDate();
}
/* construct */
var d = new Date(Date.UTC(year, (month - 1), day, hours, minutes, seconds));
The text was updated successfully, but these errors were encountered:
If timestamp() is called with no parameters the returned date is now minus one month:
Probably the fix can be:
The text was updated successfully, but these errors were encountered: