[Pkg-uml-pkgs] Bug#446795: Obtain the local time zone

Giovanni Mascellani g.mascellani at gmail.com
Thu Nov 1 20:58:34 UTC 2007


Instead of reading /etc/timezone, you can obtain the local time zone
reading the output of the command:

$ date +%Z

So I think that it would be enough to substitute
in /usr/lib/rootstrap/modules/uml the line

[ ! -e $HOST/etc/timezone ] || TARGET_TIMEZONE="$(cat
$HOST/etc/timezone)"

with

TARGET_TIMEZONE=`date +%Z`

Regards, Giovanni.
-- 
Giovanni Mascellani <g.mascellani at gmail.com>
Pisa, Italy

Web: http://giomasce.altervista.org
SIP: g.mascellani at ekiga.net
Jabber: g.mascellani at jabber.org / giovanni at elabor.homelinux.org
GPG: 0x5F1FBF70 (FP: 1EB6 3D43 E201 4DDF 67BD  003F FCB0 BB5C 5F1F BF70)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-uml-pkgs/attachments/20071101/f7e43690/attachment.pgp 


More information about the Pkg-uml-pkgs mailing list