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

Commita5d80cb

Browse files
committed
Date-type fixes from Tatsuo Ishii
1 parent75ebaa7 commita5d80cb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.27 1997/07/01 00:22:43 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.28 1997/07/0822:06:36 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2118,7 +2118,7 @@ printf( "datetime2tm- (localtime) %d.%02d.%02d %02d:%02d:%02.0f %s dst=%d\n",
21182118
tm->tm_gmtoff=tx->tm_gmtoff;
21192119
tm->tm_zone=tx->tm_zone;
21202120

2121-
*tzp=(tm->tm_isdst? (tm->tm_gmtoff-3600):tm->tm_gmtoff);/* tm_gmtoff is Sun/DEC-ism */
2121+
*tzp=-(tm->tm_gmtoff);/* tm_gmtoff is Sun/DEC-ism */
21222122
if (tzn!=NULL)*tzn=tm->tm_zone;
21232123
#endif
21242124

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.27 1997/06/23 14:56:15 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.28 1997/07/08 22:06:46 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -149,6 +149,9 @@ printf( "datetime2tm- (localtime) %d.%02d.%02d %02d:%02d:%02d %s dst=%d\n",
149149
if (tzp!=NULL)*tzp= (tm->tm_isdst? (timezone-3600):timezone);
150150
if (tzn!=NULL)strcpy(tzn,tzname[tm->tm_isdst]);
151151
#else/* !HAVE_INT_TIMEZONE */
152+
tm->tm_gmtoff=tx->tm_gmtoff;
153+
tm->tm_zone=tx->tm_zone;
154+
152155
if (tzp!=NULL)*tzp=-tm->tm_gmtoff;/* tm_gmtoff is Sun/DEC-ism */
153156
/* XXX FreeBSD man pages indicate that this should work - tgl 97/04/23 */
154157
if (tzn!=NULL)strcpy(tzn,tm->tm_zone);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp