Commit 3e1a373e authored by Bruce Momjian's avatar Bruce Momjian

Allow text timezone designations, e.g. "America/Chicago", when using the

ISO "T" timestamptz format.
parent 7514208f
......@@ -944,6 +944,16 @@ DecodeDateTime(char **field, int *ftype, int nf,
break;
case DTK_TIME:
/*
* This might be an ISO time following a "t" field.
*/
if (ptype != 0)
{
/* Sanity check; should not fail this test */
if (ptype != DTK_TIME)
return DTERR_BAD_FORMAT;
ptype = 0;
}
dterr = DecodeTime(field[i], fmask, INTERVAL_FULL_RANGE,
&tmask, tm, fsec);
if (dterr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment