From 9b752a911c51d7d2ec9c47cb9ea129c250bb925b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 21 Aug 2023 14:23:44 +0200 Subject: [PATCH] v0.0.247 -.- --- goextVersion.go | 4 ++-- timeext/time.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index c2600b1..12e3e70 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -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" diff --git a/timeext/time.go b/timeext/time.go index 677bbd7..34b2a70 100644 --- a/timeext/time.go +++ b/timeext/time.go @@ -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)