]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#28067: Fixed another typo.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sat, 10 Sep 2016 20:51:17 +0000 (16:51 -0400)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sat, 10 Sep 2016 20:51:17 +0000 (16:51 -0400)
Modules/_datetimemodule.c

index 892772ffabaf549961ceca94590c528be915a5fa..381835ddd23674831911b3b665a69b09fc3d61a7 100644 (file)
@@ -5067,7 +5067,7 @@ local_timezone_from_timestamp(time_t timestamp)
         if (local_time == NULL) {
             return NULL;
         }
-        if (gmtime(&timestamp, &utc_time_tm) == NULL) {
+        if (gmtime_r(&timestamp, &utc_time_tm) == NULL) {
 #ifdef EINVAL
             if (errno == 0)
                 errno = EINVAL;