mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
normalize backup save date
This commit is contained in:
parent
63768b0af0
commit
fa2888f463
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function configuration_backup(callback) {
|
|||
|
||||
// generate timestamp for the backup file
|
||||
var d = new Date(),
|
||||
now = d.getUTCFullYear() + '.' + d.getDate() + '.' + (d.getMonth() + 1) + '.' + d.getHours() + '.' + d.getMinutes();
|
||||
now = (d.getMonth() + 1) + '.' + d.getDate() + '.' + d.getFullYear() + '.' + d.getHours() + '.' + d.getMinutes();
|
||||
|
||||
// create or load the file
|
||||
chrome.fileSystem.chooseEntry({type: 'saveFile', suggestedName: 'baseflight_backup_' + now, accepts: accepts}, function (fileEntry) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue