diff options
author | Treeston <treeston.mmoc@gmail.com> | 2019-08-05 11:23:57 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-18 15:33:44 +0100 |
commit | 28942db4311951755df9ff45e77b1c5682057251 (patch) | |
tree | c468df242b6b92334c5835c3606fb97f5c69878a /src/common/Utilities/Util.cpp | |
parent | b2eadc9c8efcb326f5c09183233dc959d8147766 (diff) |
Common/Util: Sorry about that unexpected downtime at 3AM last night, everyone. (We call them happy little features.)
(cherry picked from commit a4d5b24874e7f6f09efc69119785c7c9113870b4)
Diffstat (limited to 'src/common/Utilities/Util.cpp')
-rw-r--r-- | src/common/Utilities/Util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp index bbcc4153f97..57281bf4fd9 100644 --- a/src/common/Utilities/Util.cpp +++ b/src/common/Utilities/Util.cpp @@ -102,7 +102,7 @@ time_t GetLocalHourTimestamp(time_t time, uint8 hour, bool onlyAfterTime) time_t midnightLocal = mktime(&timeLocal); time_t hourLocal = midnightLocal + hour * HOUR; - if (onlyAfterTime && hourLocal < time) + if (onlyAfterTime && hourLocal <= time) hourLocal += DAY; return hourLocal; |