You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-03 05:36:50 +02:00
[Issue #272] if timezone offset is not specified, treat it as local timezone
This commit is contained in:
@ -1223,6 +1223,8 @@ parse_time(const char *value, time_t *result, bool utc_default)
|
|||||||
/* determine whether Daylight Saving Time is in effect */
|
/* determine whether Daylight Saving Time is in effect */
|
||||||
tm.tm_isdst = -1;
|
tm.tm_isdst = -1;
|
||||||
|
|
||||||
|
/* if tz is not set, treat it as local timezone */
|
||||||
|
if (tz_set)
|
||||||
/* set timezone to UTC */
|
/* set timezone to UTC */
|
||||||
setenv("TZ", "UTC", 1);
|
setenv("TZ", "UTC", 1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user