Fix datestamp (damn javascript and 0-indexed months)

This commit is contained in:
Juhani Krekelä 2021-02-23 08:37:34 +02:00
parent 67c07d7b67
commit b4cb199787
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ function bookmarkTabs() {
bookmarkingTabs = true;
let now = new Date();
let dateString = [now.getFullYear().toString(), now.getMonth().toString().padStart(2, '0'), now.getDate().toString().padStart(2, '0')].join('-');
let dateString = [now.getFullYear().toString(), (now.getMonth() + 1).toString().padStart(2, '0'), now.getDate().toString().padStart(2, '0')].join('-');
let timeString = [now.getHours().toString().padStart(2, '0'), now.getMinutes().toString().padStart(2, '0')].join(':');
setActionStatus('Bookmarking tabs…', 'processing', function() {
getOrCreateFolder(function(rootId) {