Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e1a373

Browse files
committed
Allow text timezone designations, e.g. "America/Chicago", when using the
ISO "T" timestamptz format.
1 parent7514208 commit3e1a373

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/backend/utils/adt/datetime.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,16 @@ DecodeDateTime(char **field, int *ftype, int nf,
944944
break;
945945

946946
caseDTK_TIME:
947+
/*
948+
* This might be an ISO time following a "t" field.
949+
*/
950+
if (ptype!=0)
951+
{
952+
/* Sanity check; should not fail this test */
953+
if (ptype!=DTK_TIME)
954+
returnDTERR_BAD_FORMAT;
955+
ptype=0;
956+
}
947957
dterr=DecodeTime(field[i],fmask,INTERVAL_FULL_RANGE,
948958
&tmask,tm,fsec);
949959
if (dterr)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp