Closed Bug 297219 Opened 20 years ago Closed 20 years ago

Javascript date function returns incorrect date when I change date time properties on computer

Categories

(Core :: JavaScript Engine, defect)

1.7 Branch
x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: itDept, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

<html>
<head></head>
<body>
<script>
document.write(new Date());
</script>
</body></html>
--------------
This returns the correct date to start, but when you update the date and time
properties on your PC, javascript will not recognize that a change has been
made, and will continue to show the old date.

Reproducible: Always

Steps to Reproduce:
1.display a javascript new date onto a web page (any)
2.change time on computer
3.display date again, it will not match computer time

Actual Results:  
The time does not match computer time

Expected Results:  
Shown the correct, updated date
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050609
Firefox/1.0+ ID:2005060909

WFM
Works for me too. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050604 Firefox/1.0+
Attached file testcase
works for me in deerpark winxpsp2 from today.
and in today's ff 1.0.4
Assignee: nobody → general
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → 1.7 Branch
wfm
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: