Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Firefox new Date returning wrong time.

  • Không có trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
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.
Đính kèm ảnh chụp màn hình