Fix datestamp (damn javascript and 0-indexed months)
This commit is contained in:
parent
67c07d7b67
commit
b4cb199787
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue