michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: var TZ_DIFF = getTimeZoneDiff(); michael@0: michael@0: /* michael@0: * Originally, the test suite used a hard-coded value TZ_DIFF = -8. michael@0: * But that was only valid for testers in the Pacific Standard Time Zone! michael@0: * We calculate the proper number dynamically for any tester. We just michael@0: * have to be careful to use a date not subject to Daylight Savings Time... michael@0: */ michael@0: function getTimeZoneDiff() michael@0: { michael@0: return -((new Date(2000, 1, 1)).getTimezoneOffset())/60; michael@0: }