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.
This commit is contained in:
Thomas G. Lockhart 1997-11-10 15:37:15 +00:00
parent b42e37bcde
commit 4ebc4e39d1
1 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,7 @@
* Routines for handling of 'SET var TO',
* 'SHOW var' and 'RESET var' statements.
*
* $Id: variable.c,v 1.20 1997/11/10 15:24:56 thomas Exp $
* $Id: variable.c,v 1.21 1997/11/10 15:37:15 thomas Exp $
*
*/
@ -439,6 +439,11 @@ static char *defaultTZ = NULL;
static char TZvalue[64];
static char tzbuf[64];
/* parse_timezone()
* Handle SET TIME ZONE...
* Try to save existing TZ environment variable for later use in RESET TIME ZONE.
* - thomas 1997-11-10
*/
bool
parse_timezone(const char *value)
{