Switch date format for backups

Fixes #114
This commit is contained in:
narcolepticinsomniac 2017-07-12 09:22:49 -04:00 committed by GitHub
parent 36b6485cd0
commit ed83f8f77e

View File

@ -347,7 +347,7 @@ $('#file-all-styles').onclick = () => {
const dd = ('0' + today.getDate()).substr(-2); const dd = ('0' + today.getDate()).substr(-2);
const mm = ('0' + (today.getMonth() + 1)).substr(-2); const mm = ('0' + (today.getMonth() + 1)).substr(-2);
const yyyy = today.getFullYear(); const yyyy = today.getFullYear();
return `stylus-${mm}-${dd}-${yyyy}${STYLUS_BACKUP_FILE_EXT}`; return `stylus-${yyyy}-${mm}-${dd}${STYLUS_BACKUP_FILE_EXT}`;
} }
}; };