summaryrefslogtreecommitdiff
path: root/www/firefox/files/patch-bug1385597
blob: c04746e894499800639e81d6bfc488d55f960b34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Properly restore system timezone on other POSIX systems. r?ehsan
    
--- toolkit/components/resistfingerprinting/nsRFPService.cpp
+++ toolkit/components/resistfingerprinting/nsRFPService.cpp
@@ -162,14 +162,14 @@ nsRFPService::UpdatePref()
         PR_SetEnv(tz);
       }
     } else {
-#if defined(XP_LINUX) || defined (XP_MACOSX)
-      // For POSIX like system, we reset the TZ to the /etc/localtime, which is the
-      // system timezone.
-      PR_SetEnv("TZ=:/etc/localtime");
-#else
+#if defined(XP_WIN)
       // For Windows, we reset the TZ to an empty string. This will make Windows to use
       // its system timezone.
       PR_SetEnv("TZ=");
+#else
+      // For POSIX like system, we reset the TZ to the /etc/localtime, which is the
+      // system timezone.
+      PR_SetEnv("TZ=:/etc/localtime");
 #endif
     }
   }