bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

History timestamping does not respect TZ env variable


From: Julian Mehnle
Subject: History timestamping does not respect TZ env variable
Date: Mon, 13 Jun 2005 17:31:46 +0200
User-agent: KMail/1.7.2

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTY PE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include -I../bash/lib  -g -O2
uname output: Linux io 2.4.27-2-k6 #1 Mon May 16 17:10:52 JST 2005 i586 
GNU/Linux
Machine Type: i386-pc-linux-gnu

Bash Version: 3.0
Patch Level: 16
Release Status: release

Description:
The history timestamping feature of Bash 3.0 does not respect the TZ
(timezone) environment variable.  It erroneously always uses the system
clock's configured timezone.

Repeat-By:
| $ export HISTTIMEFORMAT='%FT%T%z'
| 
| $ date +'%FT%T%z'
| 2005-06-13T17:26:14+0200
| $ history | tail -1
|  1014  2005-06-13T17:26:21+0200 history | tail -1
| 
| $ export TZ=UTC
| $ date +'%FT%T%z'
| 2005-06-13T15:26:28+0000
| $ history | tail -1
|  1017  2005-06-13T17:26:30+0200 history | tail -1

Regards,
Julian Mehnle.

Attachment: pgpupZh9FZ3ig.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]