|
Message-ID: <CAGDMk9HMM9rCdMNhf1NbhYbBTmxWHU8HO4dkov7HLVwN6FPnhg@mail.gmail.com>
Date: Thu, 1 May 2014 16:37:16 -0400
From: John Mudd <johnbmudd@...il.com>
To: musl <musl@...ts.openwall.com>
Subject: ctime, timezone?
Am I doing something wrong? I expected roughly the same time when running
the musl version.
$ cat test_ctime.c
#include <stdio.h>
#include <time.h>
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
$
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.