fix: fixed time command showing an hour too much
This commit is contained in:
parent
0212d48df7
commit
3133629b84
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class TimeExtension : Extension() {
|
||||||
lateinit var ud: UserData
|
lateinit var ud: UserData
|
||||||
|
|
||||||
// This should be correct;
|
// 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)) {
|
if (UserRepository.doesUserExist(u.id.value)) {
|
||||||
// Update existing user
|
// Update existing user
|
||||||
|
|
Loading…
Reference in a new issue