Date: Fri, 30 May 1997 16:15:57 +0200 From: Marc van Kempen <marc@bowtie.nl> To: emulation@freebsd.org Subject: Linux emulation doesn't recognize timezone Message-ID: <199705301415.QAA24017@nietzsche.bowtie.nl>
next in thread | raw e-mail | index | archive | help
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 <stdio.h> #include <time.h> 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 ----------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705301415.QAA24017>