projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b66b3c4
)
time-util: fix typo
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 3 Mar 2023 06:24:23 +0000
(15:24 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 3 Mar 2023 11:39:19 +0000
(20:39 +0900)
Follow-up for
7a9afae6040af0417d893328cb44b622dcdcb94f
.
src/basic/time-util.c
patch
|
blob
|
history
diff --git
a/src/basic/time-util.c
b/src/basic/time-util.c
index 2d2a507b203b37c81e105ab3ad10a63781075546..3fa003eab28998a4f0d545b55b5297df3d5920b7 100644
(file)
--- a/
src/basic/time-util.c
+++ b/
src/basic/time-util.c
@@
-841,7
+841,7
@@
from_tm:
if (gmtoff < 0) {
plus = -gmtoff * USEC_PER_SEC;
- /* If gmtoff is negative, the string may
e
be too old to be parsed as UTC.
+ /* If gmtoff is negative, the string may be too old to be parsed as UTC.
* E.g. 1969-12-31 23:00:00 -06 == 1970-01-01 05:00:00 UTC
* We assumed that gmtoff is in the range of -24:00…+24:00, hence the only date we need to
* handle here is 1969-12-31. So, let's shift the date with one day, then subtract the shift