From apwww@hyperreal.org Thu Sep 18 11:48:08 1997 Received: (from apwww@localhost) by hyperreal.org (8.8.5/8.8.5) id LAA15691; Thu, 18 Sep 1997 11:48:08 -0700 (PDT) Message-Id: <199709181848.LAA15691@hyperreal.org> Date: Thu, 18 Sep 1997 11:48:08 -0700 (PDT) From: Warren Pattison Reply-To: warren.j.pattison@usahq.unitedspacealliance.com To: apbugs@hyperreal.org Subject: Javascript Interpretation Error X-Send-Pr-Version: 3.2 >Number: 1147 >Category: general >Synopsis: Javascript Interpretation Error >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Sep 18 11:50:01 1997 >Last-Modified: Thu Sep 18 12:18:57 PDT 1997 >Originator: warren.j.pattison@usahq.unitedspacealliance.com >Organization: >Release: 1.2.0 >Environment: SunOS kepler 5.4 Generic_101945-49 sun4m sparc >Description: When the following: ------------------------------- ------------------------------- is coded into HEADER.html, the output is as follows: ------------------------------- This document was last modified on: Wed Dec 31 18:00:00 1969 ------------------------------- I believe this to be because of the dynamic adding of the directory listing. Shouldn't the time resolve to the last time HEADER.html was modified - if not, then to the current time that document was called? I realize the wrong time is GMT+6hours, which is our time zone. This tells me that the javascript is either NULLing out or getting zero returned. When HEADER.html is renamed to index.html, the output is correct. I am using two versions of Netscape, both have the same results. >How-To-Repeat: Generate two identical html files, each containing the javascript code. Name one file index.html, and the other file HEADER.html. View the files through the browser. >Fix: No. My guess is that time_t (setting UNIX seconds) is erroring out >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: dgaudet State-Changed-When: Thu Sep 18 12:18:56 PDT 1997 State-Changed-Why: This is a javascript problem not an apache problem. It's likely because dynamically generated content (such as directory indexes and server parsed html) do *not* include Last-Modified headers. So you're probably supposed to check for the existance of that header before using that variable. Dean >Unformatted: