1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2026-06-21 01:34:15 +02:00

Merge branch 'master' into issue_238

This commit is contained in:
Grigory Smolkin
2020-12-02 18:19:18 +03:00
2 changed files with 9 additions and 2 deletions
+5
View File
@@ -4409,6 +4409,10 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
<listitem>
<para>
Specifies the timestamp up to which recovery will proceed.
If timezone offset is not specified, local timezone is used.
</para>
<para>
Example: <literal>--recovery-target-time='2020-01-01 00:00:00+03'</literal>
</para>
</listitem>
</varlistentry>
@@ -4595,6 +4599,7 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
<para>
Specifies the timestamp up to which the backup will stay
pinned. Must be an ISO-8601 complaint timestamp.
If timezone offset is not specified, local timezone is used.
</para>
<para>
Example: <literal>--expire-time='2020-01-01 00:00:00+03'</literal>
+4 -2
View File
@@ -1223,8 +1223,10 @@ parse_time(const char *value, time_t *result, bool utc_default)
/* determine whether Daylight Saving Time is in effect */
tm.tm_isdst = -1;
/* set timezone to UTC */
setenv("TZ", "UTC", 1);
/* if tz is not set, treat it as local timezone */
if (tz_set)
/* set timezone to UTC */
setenv("TZ", "UTC", 1);
/* convert time to utc unix time */
*result = mktime(&tm);