diff options
| author | Tom Lane | 2016-03-28 21:19:29 +0000 |
|---|---|---|
| committer | Tom Lane | 2016-03-28 21:19:29 +0000 |
| commit | 1f4e9da624a0caf78bcb526f6b05f5993e26f2c7 (patch) | |
| tree | dfb146d595c366297548e4fb9c00067fcbe81a2f /src/bin | |
| parent | f5f15ea6aad1b75c1c133a914cf29f9831089a6e (diff) | |
Sync tzload() and tzparse() APIs with IANA release tzcode2016c.
This brings us a bit closer to matching upstream, but since it affects
files outside src/timezone/, we might choose not to back-patch it.
Hence keep it separate from the main update patch.
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/initdb/findtimezone.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/initdb/findtimezone.c b/src/bin/initdb/findtimezone.c index 95958734cab..5a443131eed 100644 --- a/src/bin/initdb/findtimezone.c +++ b/src/bin/initdb/findtimezone.c @@ -99,15 +99,15 @@ pg_load_tz(const char *name) */ if (strcmp(name, "GMT") == 0) { - if (tzparse(name, &tz.state, TRUE) != 0) + if (!tzparse(name, &tz.state, true)) { /* This really, really should not happen ... */ return NULL; } } - else if (tzload(name, NULL, &tz.state, TRUE) != 0) + else if (tzload(name, NULL, &tz.state, true) != 0) { - if (name[0] == ':' || tzparse(name, &tz.state, FALSE) != 0) + if (name[0] == ':' || !tzparse(name, &tz.state, false)) { return NULL; /* unknown timezone */ } |
