Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.lastModified not working right

Status
Not open for further replies.

artheim

Programmer
Jan 15, 2003
103
US
I have a page that uses SSI, and also displays the lastModified date in a javascript section. In this configuration, with IE 6.0 the date is always the current date - not the document modified date. With Netscape 4.7 the date is displayed as December 31, 1969.. If I rename the file to be xxx.html instead of xxx.shtml to elliminate the SSI processing, the correct date/time is displayed. The server is running Apache 1.3.26 (Unix). Is there a way around this where I can get the actual local time for the document last modified value?
 
The server can't send a reliable lastmodified date with dynamically generated pages such as SSI. The page is assembled on the fly from resources that may have differing timestamps or no timestamps at all.

petey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top