author | Jan Beich <jbeich@FreeBSD.org> |
Sat, 29 Jul 2017 16:16:02 +0000 | |
changeset 372121 | a470ec390d7b24a1685c0081cc4ac5f455e86c02 |
parent 372120 | 310c1b6a7127da2a53f9bec0e9717a039281ab8c |
child 372122 | 1cf8b34f618eab61e33d1d4331db057522462ae3 |
push id | 47698 |
push user | ryanvm@gmail.com |
push date | Tue, 01 Aug 2017 02:22:15 +0000 |
treeherder | autoland@a470ec390d7b [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | Ehsan |
bugs | 1385597 |
milestone | 56.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
toolkit/components/resistfingerprinting/nsRFPService.cpp | file | annotate | diff | comparison | revisions |
--- a/toolkit/components/resistfingerprinting/nsRFPService.cpp +++ b/toolkit/components/resistfingerprinting/nsRFPService.cpp @@ -157,24 +157,24 @@ nsRFPService::UpdatePref() } // PR_SetEnv() needs the input string been leaked intentionally, so // we copy it here. tz = ToNewCString(tzValue); if (tz) { PR_SetEnv(tz); } } else { -#if defined(XP_LINUX) || defined (XP_MACOSX) +#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"); -#else - // For Windows, we reset the TZ to an empty string. This will make Windows to use - // its system timezone. - PR_SetEnv("TZ="); #endif } } nsJSUtils::ResetTimeZone(); } void