v0.0.247 -.-
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m12s

This commit is contained in:
Mike Schwörer 2023-08-21 14:23:44 +02:00
parent ec9ac26a4c
commit 9b752a911c
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.246"
const GoextVersion = "0.0.247"
const GoextVersionTimestamp = "2023-08-21T14:15:06+0200"
const GoextVersionTimestamp = "2023-08-21T14:23:44+0200"

View File

@ -30,7 +30,7 @@ func TimeToDayStart(t time.Time, tz *time.Location) time.Time {
// TimeToDayEnd returns a timestamp at the end of the day which contains t (= 23:59:59)
func TimeToDayEnd(t time.Time, tz *time.Location) time.Time {
return TimeToDayStart(t, tz).AddDate(0, 1, 0).Add(-1)
return TimeToDayStart(t, tz).AddDate(0, 0, 1).Add(-1)
}
// TimeToWeekStart returns a timestamp at the start of the week which contains t (= Monday 00:00:00)