v0.0.247 -.-
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m12s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m12s
This commit is contained in:
parent
ec9ac26a4c
commit
9b752a911c
@ -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"
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user