On Thu, May 1, 2014 at 3:37 PM, John Mudd <johnbmudd@gmail.com> wrote:
Am I doing something wrong? I expected roughly the same time when running the musl version.

$ 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
$

It looks as though glibc and musl have different ideas of what the timezone is. Could you print out the contents of the $TZ variable, and if /etc/localtime is a symlink, could you tell us where that points to?