Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Firefox new Date returning wrong time.

  • Žiadne odpovede
  • 1 má tento problém
  • 1 zobrazenie
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.
Priložené obrázky