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

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

Firefox new Date returning wrong time.

  • Gan freagra
  • 1 leis an bhfadhb seo
  • 1 view
more options

I am currently situated at UTC+5:30 Chennai Time Offset location. When I try to do new Date() on firefox, I get the correct date, that is for today for that timezone. Attached a screenshot of correct system timeZone and new Date() output. My question is, if I change the system timeZone to say UTC+14:00 and do new Date(), shouldn't it give result for that timezone as Chrome does? If there is a way to achieve that please let me know.

I am currently situated at UTC+5:30 Chennai Time Offset location. When I try to do new Date() on firefox, I get the correct date, that is for today for that timezone. Attached a screenshot of correct system timeZone and new Date() output. My question is, if I change the system timeZone to say UTC+14:00 and do new Date(), shouldn't it give result for that timezone as Chrome does? If there is a way to achieve that please let me know.
Attached screenshots