Add automatic entry deletion after a specified amount of time.

This commit is contained in:
2021-01-13 00:05:43 +01:00
parent 09a4bcb201
commit a5acdc53a1
4 changed files with 62 additions and 1 deletions

View File

@ -322,7 +322,11 @@
}
document.querySelector('input#end').value = localISOTimeMinutes(new Date())
var now = new Date()
var startDate = new Date()
startDate.setDate(now.getDate() - (4*7))
document.querySelector('input#start').value = localISOTimeMinutes(startDate)
document.querySelector('input#end').value = localISOTimeMinutes(now)
var scrollbox = document.querySelector('.scroll')
var timehead = document.querySelector('#timeheader')