|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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);
...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 


Add a Patch

Pull Requests

Add a Pull Request


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-2021 The PHP Group
All rights reserved.
Last updated: Mon May 17 23:01:23 2021 UTC