[PHP-DEV] Bug #325: JavaScript Errors From: jcsmouse <email protected>
Date: 04/28/98

From: jcsmouse <email protected>
Operating system: Red Hat 5.0
PHP version: 3.0 Release Candidate 4
PHP Bug Type: Performance problem
Bug description:
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