summaryrefslogtreecommitdiffstats
path: root/util/datetime/systime.cpp
diff options
context:
space:
mode:
authortobo <[email protected]>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/datetime/systime.cpp
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/datetime/systime.cpp')
-rw-r--r--util/datetime/systime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/datetime/systime.cpp b/util/datetime/systime.cpp
index f77464704bd..6ee7e8fc6ed 100644
--- a/util/datetime/systime.cpp
+++ b/util/datetime/systime.cpp
@@ -113,14 +113,14 @@ struct tm* GmTimeR(const time_t* timer, struct tm* tmbuf) {
tmbuf->tm_wday = (dayno + 4) % 7; // Day 0 was a thursday
while (dayno >= (ui64)YEARSIZE(year)) {
dayno -= YEARSIZE(year);
- ++year;
+ ++year;
}
tmbuf->tm_year = year - YEAR0;
tmbuf->tm_yday = dayno;
tmbuf->tm_mon = 0;
while (dayno >= (ui64)_ytab[LEAPYEAR(year)][tmbuf->tm_mon]) {
dayno -= _ytab[LEAPYEAR(year)][tmbuf->tm_mon];
- ++tmbuf->tm_mon;
+ ++tmbuf->tm_mon;
}
tmbuf->tm_mday = dayno + 1;
tmbuf->tm_isdst = 0;