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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 - 6 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC