Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Error in JS work

  • 2 replies
  • 1 has this problem
  • 15 views
  • Paskiausią atsakymą parašė sanickson

more options

Windows 7. Time zone is UTC+10:00 RTZ 9. Command: new Date(2014, 0, 1) Result: Date {Tue Dec 31 2013 23:00:00 GMT+1000}.

Windows 7. Time zone is UTC+10:00 RTZ 9. Command: new Date(2014, 0, 1) Result: Date {Tue Dec 31 2013 23:00:00 GMT+1000}.

All Replies (2)

more options

Exactly one hour. Hmm, could it be a Daylight Savings / Summer Time issue?

more options

Maybe. I think that problem became relevant after windows update time zone. FireFox 33.1 installed On my friend's computer and on my computer too. But his time zone is UTC+10:00. His didn't installed windows time zone update and his result of command "new Date(2014, 0, 1) " is "Date {Wed Jan 01 2014 00:00:00 GMT+1000}"