$ echo $TZ $ set | grep TZ $ I don't have $TZ set at all. $ ls -l /etc/localtime -rw-r--r-- 1 root root 3519 Apr 24 18:13 /etc/localtime $ Thanks, works as expected now with $TZ set. $ export TZ='America/New_York' $ test_ctime Thu May 1 17:54:29 2014 $ On Thu, May 1, 2014 at 4:37 PM, John Mudd wrote: > Am I doing something wrong? I expected roughly the same time when running > the musl version. > > > $ cat test_ctime.c > #include > #include > > int main() > { > time_t t = time(0); > printf("%s", ctime(&t)); > } > $ > > > $ gcc test_ctime.c -o test_ctime > $ test_ctime > Thu May 1 16:33:16 2014 > $ > > > $ musl-gcc -fno-stack-protector test_ctime.c -o test_ctime > $ test_ctime > Thu May 1 20:33:46 2014 > $ >