localtim: should automatically call tzset
authorAlan Cox <alan@linux.intel.com>
Wed, 21 Feb 2018 21:44:57 +0000 (21:44 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 21 Feb 2018 21:44:57 +0000 (21:44 +0000)
Library/libs/localtim.c

index 2bec36b..847c679 100644 (file)
@@ -4,6 +4,7 @@
 struct tm *localtime(time_t * timep)
 {
        static struct tm tmb;
+       tzset();
        __tm_conv(&tmb, timep, (int) (timezone / 60));
        return &tmb;
 }