Prefer ISO date formatting

Previously, this was formatted using locale specific settings. This will allow
easier debugging by matching key rotation timestamps against log timestamps.
This commit is contained in:
Daniel Gasienica 2018-04-02 18:57:57 -04:00
parent 2e4893f4c1
commit 32ac99b439
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,10 @@
var time = storage.get('nextSignedKeyRotationTime', now);
if (scheduledTime !== time || !timeout) {
console.log('Next signed key rotation scheduled for', new Date(time));
console.log(
'Next signed key rotation scheduled for',
new Date(time).toISOString()
);
}
scheduledTime = time;