Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Firefox new Date returning wrong time.

  • Nessuna risposta
  • 1 ha questo problema
  • 1 visualizzazione
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.
Immagini allegate