diff options
Diffstat (limited to 'resources/js/memory.js')
-rw-r--r-- | resources/js/memory.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/js/memory.js b/resources/js/memory.js index c0fa171..421cecb 100644 --- a/resources/js/memory.js +++ b/resources/js/memory.js @@ -76,7 +76,7 @@ const Memory = { saveToLocalStorage () { const lastWrite = new Date(localStorage.getItem('lastWrite')); if (Math.abs(new Date() - lastWrite) / (1000 * 60 * 60 * 24) >= 0.25) { - localStorage.setItem(`state_${(new Date()).toLocaleDateString()}_${(new Date()).getTime()}`, localStorage.getItem('state')); + localStorage.setItem(`state_${(new Date()).toLocaleDateString()}_${(new Date()).toLocaleTimeString()}`, localStorage.getItem('state')); } localStorage.setItem('state', Memory.saveToString()); |