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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 06:01:23 2020 UTC