Brandon Benvie (2013-07-17T23:55:28.000Z)
On 7/17/2013 4:54 PM, Norbert Lindenberg wrote:
> On Jul 17, 2013, at 16:51 , Brandon Benvie <bbenvie at mozilla.com> wrote:
>
>> On 7/17/2013 4:42 PM, Brandon Benvie wrote:
>>> On 7/17/2013 4:36 PM, Jonas Sicking wrote:
>>>> Is this simply a SpiderMonkey bug? Do we expect JS code to be able to
>>>> handle Date objects representing timezones other than the user's
>>>> current timezone?
>>> What happens if the timezone changes between the creation of two Date objects, such as for daylight savings or the user changes their system timezone?
>> Having just tested this, it is possible in SM to get two Dates that report different values from getTimezoneOffset.
> How?
>
> Norbert
>

Create a Date object, change the system timezone, create a second Date 
object. They reflect the timezone at time of Date object creation, not a 
static one.
domenic at domenicdenicola.com (2013-07-24T00:38:39.670Z)
On 7/17/2013 4:54 PM, Norbert Lindenberg wrote:
> On Jul 17, 2013, at 16:51 , Brandon Benvie <bbenvie at mozilla.com> wrote:
>
>> Having just tested this, it is possible in SM to get two Dates that report different values from getTimezoneOffset.
>
> How?

Create a Date object, change the system timezone, create a second Date 
object. They reflect the timezone at time of Date object creation, not a 
static one.