Skip to content

Commit 4ebc4e3

Browse files
author
Thomas G. Lockhart
committed
Do a more complete job of supporting time zone information.
Try to save pre-existing TZ environment variable if possible. Includes code from Keith Parks.
1 parent b42e37b commit 4ebc4e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/backend/tcop/variable.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Routines for handling of 'SET var TO',
33
* 'SHOW var' and 'RESET var' statements.
44
*
5-
* $Id: variable.c,v 1.20 1997/11/10 15:24:56 thomas Exp $
5+
* $Id: variable.c,v 1.21 1997/11/10 15:37:15 thomas Exp $
66
*
77
*/
88

@@ -439,6 +439,11 @@ static char *defaultTZ = NULL;
439439
static char TZvalue[64];
440440
static char tzbuf[64];
441441

442+
/* parse_timezone()
443+
* Handle SET TIME ZONE...
444+
* Try to save existing TZ environment variable for later use in RESET TIME ZONE.
445+
* - thomas 1997-11-10
446+
*/
442447
bool
443448
parse_timezone(const char *value)
444449
{

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