Skip to content

Commit 2e763e3

Browse files
author
Thomas G. Lockhart
committed
Fix problem with bad reference to tzn in GetCurrentAbsoluteTime().
Already was done in the main tree.
1 parent db9b12b commit 2e763e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/utils/adt/nabstime.c

Lines changed: 2 additions & 3 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/nabstime.c,v 1.46.2.1 1998/12/14 00:11:46 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.46.2.2 1998/12/19 03:23:18 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -75,8 +75,7 @@ GetCurrentAbsoluteTime(void)
7575
strftime(CTZName, MAXTZLEN, "%Z", tm);
7676
#endif
7777
/* XXX FreeBSD man pages indicate that this should work - thomas 1998-12-12 */
78-
if (tzn != NULL)
79-
strcpy(tzn, tm->tm_zone);
78+
strcpy(CTZName, tm->tm_zone);
8079

8180
#elif defined(HAVE_INT_TIMEZONE)
8281
tm = localtime(&now);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy