php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #325 JavaScript Errors
Submitted: 1998-04-28 19:12 UTC Modified: 1998-05-01 09:56 UTC
From: jcsmouse at ou dot edu Assigned:
Status: Closed Package: Performance problem
PHP Version: 3.0 Release Candidate 4 OS: Red Hat 5.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jcsmouse at ou dot edu
New email:
PHP Version: OS:

 

 [1998-04-28 19:12 UTC] jcsmouse at ou dot edu
When using the JavaScript "document.LastModified" property in conjunction with PHP in a Web document, the return value in SOME browsers (Netscape Navigator) is bogus (usually returns December 31, 1969):

...begin test.php3/test.html...
<script language = "JavaScript">
   lastmod = new Date(document.lastModified);
   document.writeln(lastmod);
</script>
...end test.php3/test.html...

Results of test.html:

in MSIE4.0: Tue Apr 28 23:05:04 CDT 1998
in NSN4.0x: Tue Apr 28 18:05:04 Central Daylight Time 1998 

Results of test.php3 (exact same file, handled with php):

in MSIE4.0: Tue Apr 28 23:10:08 CDT 1998 
in NSN4.0x: Wed Dec 31 18:00:00 Central Standard Time 1969 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-01 09:56 UTC] zeev
Setting a last-modified date is the user's
responsibility.  You can do so using the
Header() command.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 09:01:27 2025 UTC