unlike on BeOS, our localtime_r doesn't set timezone information, we can call tzset() ourself
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14527 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -80,6 +80,7 @@ main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
time_t t;
|
time_t t;
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
|
tzset();
|
||||||
time(&t);
|
time(&t);
|
||||||
localtime_r(&t, &tm);
|
localtime_r(&t, &tm);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user