Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6fbe58ce
Commit
6fbe58ce
authored
Nov 13, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow +1300 as a numeric timezone specifier; we already accept FJST as meaning +1300.
parent
d45cfb4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/backend/utils/adt/datetime.c
src/backend/utils/adt/datetime.c
+5
-2
No files found.
src/backend/utils/adt/datetime.c
View file @
6fbe58ce
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.9
6 2002/09/04 20:31:27 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.9
7 2002/11/13 17:24:05 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -2537,6 +2537,9 @@ DecodeNumberField(int len, char *str, int fmask,
...
@@ -2537,6 +2537,9 @@ DecodeNumberField(int len, char *str, int fmask,
/* DecodeTimezone()
/* DecodeTimezone()
* Interpret string as a numeric timezone.
* Interpret string as a numeric timezone.
*
* Note: we allow timezone offsets up to 13:59. There are places that
* use +1300 summer time.
*/
*/
static
int
static
int
DecodeTimezone
(
char
*
str
,
int
*
tzp
)
DecodeTimezone
(
char
*
str
,
int
*
tzp
)
...
@@ -2562,7 +2565,7 @@ DecodeTimezone(char *str, int *tzp)
...
@@ -2562,7 +2565,7 @@ DecodeTimezone(char *str, int *tzp)
*
(
str
+
len
-
2
)
=
'\0'
;
*
(
str
+
len
-
2
)
=
'\0'
;
hr
=
strtol
((
str
+
1
),
&
cp
,
10
);
hr
=
strtol
((
str
+
1
),
&
cp
,
10
);
if
((
hr
<
0
)
||
(
hr
>
1
2
))
if
((
hr
<
0
)
||
(
hr
>
1
3
))
return
-
1
;
return
-
1
;
}
}
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment