]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
time-util: drop redundant call of tzset()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Mar 2023 13:02:43 +0000 (22:02 +0900)
committerLuca 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

index 26fd1bae6533bad887dfab35dcb6f57a50005646..30f093fff91ea0c94c8db20d8784ad5ab569a087 100644 (file)
@@ -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);