projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d249c23
)
time-util: drop redundant call of tzset()
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 6 Mar 2023 13:02:43 +0000
(22:02 +0900)
committer
Luca Boccassi
<luca.boccassi@gmail.com>
Mon, 6 Mar 2023 20:39:37 +0000
(20:39 +0000)
It is also called at the beginning of `parse_timestamp_maybe_with_tz()`.
src/basic/time-util.c
patch
|
blob
|
history
diff --git
a/src/basic/time-util.c
b/src/basic/time-util.c
index 26fd1bae6533bad887dfab35dcb6f57a50005646..30f093fff91ea0c94c8db20d8784ad5ab569a087 100644
(file)
--- a/
src/basic/time-util.c
+++ b/
src/basic/time-util.c
@@
-994,8
+994,6
@@
int parse_timestamp(const char *t, usec_t *ret) {
_exit(EXIT_FAILURE);
}
- tzset();
-
shared->return_value = parse_timestamp_maybe_with_tz(t, tz_offset, /* valid_tz = */ true, &shared->usec);
_exit(EXIT_SUCCESS);