From owner-freebsd-emulation Fri May 30 07:19:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA17493 for emulation-outgoing; Fri, 30 May 1997 07:19:32 -0700 (PDT) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id HAA17487 for ; Fri, 30 May 1997 07:19:26 -0700 (PDT) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 7704 on Fri, 30 May 1997 14:19:18 GMT; id OAA07704 efrom: marc@nietzsche.bowtie.nl; eto: emulation@freebsd.org Received: from localhost (localhost [127.0.0.1]) by nietzsche.bowtie.nl (8.8.2/8.7.3) with ESMTP id QAA24017 for ; Fri, 30 May 1997 16:15:57 +0200 (MET DST) Message-Id: <199705301415.QAA24017@nietzsche.bowtie.nl> X-Mailer: exmh version 1.6.7 5/3/96 To: emulation@freebsd.org Subject: Linux emulation doesn't recognize timezone Date: Fri, 30 May 1997 16:15:57 +0200 From: Marc van Kempen Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I'm developing a program under FreeBSD, using the Linux development kit, since I'm using the solid database engine. However when I try to get the time, it doesn't recognize my timezone: My timezone is GMT+1 Output from FreeBSD binary: 30 May 1997, 16:10h <-- this is GMT+1 and summertime Output from Linux binary: 30 May 1997, 14:10h <-- this is GMT the testprogram is as follows: #include #include void main(void) { char d[100]; time_t secs; secs = time(NULL); strftime(d, 100, "%d %B %Y, %Rh", localtime(&secs)); printf("%s\n", d); return; } I tried copying the /etc/localtime to /compat/linux/etc, but this didn't work. What must I do to make the linux emulation recognize my timezone? Regards, Marc. ---------------------------------------------------- Marc van Kempen BowTie Technology Email: marc@bowtie.nl WWW & Databases tel. +31 40 2 43 20 65 fax. +31 40 2 44 21 86 http://www.bowtie.nl ----------------------------------------------------