fix: fixed time command showing an hour too much

This commit is contained in:
moonleay 2024-02-07 10:59:37 +01:00
parent 0212d48df7
commit 3133629b84
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -52,7 +52,7 @@ class TimeExtension : Extension() {
lateinit var ud: UserData
// This should be correct;
val timeToSleep = timeToWake.toEpochSecond() * 1000 - System.currentTimeMillis()
val timeToSleep = timeToWake.toEpochSecond() * 1000 - System.currentTimeMillis() - 1000 * 60 * 60
if (UserRepository.doesUserExist(u.id.value)) {
// Update existing user