chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9185c8e
)
path-util: when parsing a timestamp we don't know the timezone
author
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Nov 2012 21:52:38 +0000
(22:52 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Nov 2012 21:52:38 +0000
(22:52 +0100)
src/shared/time-util.c
patch
|
blob
|
history
diff --git
a/src/shared/time-util.c
b/src/shared/time-util.c
index 7f477100b3ddebe6640fb65373f088529e1805be..43448e0c6305ec5449596e8274fe14ea2c6d9704 100644
(file)
--- a/
src/shared/time-util.c
+++ b/
src/shared/time-util.c
@@
-312,6
+312,7
@@
int parse_timestamp(const char *t, usec_t *usec) {
x = time(NULL);
assert_se(localtime_r(&x, &tm));
+ tm.tm_isdst = -1;
if (streq(t, "now"))
goto finish;