473,500 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javascript document.lastModified apache 1.3 error

Hi all,

We're using Apache 1.3 (I know, I know, there's a newer version...)
and it seems that the document.lastModified does not return the
correct date. On Netscape it shows 01/01/1970 and on IE etc it shows
the "current" date, but not the file's last mod date!!!

I've searched the net and I've seen many posts with simular issues,
but I cannot find the solution...is there one??? Is there a setting in
my https.conf file???

Thanks in advance!

~Kam (^8*

ps. on Solaris 9
Jul 23 '05 #1
2 1812
Kam Bansal wrote:
We're using Apache 1.3 (I know, I know, there's a newer version...)
Yes, Apache 1.3.31 and 2.0.50, both including many security
fixes which is why you really want to update/upgrade.
and it seems that the document.lastModified does not return the
correct date.
`document' refers to a host object. It is not guaranteed
that this even exists, let alone that its properties exist.
On Netscape
Which of the numerous Netscape versions are you talking about?
it shows 01/01/1970
Reads like you have tried document.lastModified with the Date object,
and the formats do not match. January 1, 1970 midnight is the zero
date value.
and on IE
Which platform, which version?
etc
Define that.
it shows the "current" date, but not the file's last mod date!!! ^^^
Reads like you are referring to a document generated by a server-side
application, e.g. PHP or ASP.
I've searched the net and I've seen many posts with simular issues,
but I cannot find the solution...is there one??? Is there a setting in ^^^ my https.conf file???

^^^
Your keyboard is borken.

If there were a solution, httpd.conf would be the appropriate configuration
file and it would be off-topic here.

Why do you pursue a solution with client-side J(ava)Script where Server-Side
Includes or server-side scripting would be the reliable solution?
PointedEars
Jul 23 '05 #2
JRS: In article <66**************************@posting.google.com >,
dated Mon, 2 Aug 2004 14:19:17, seen in news:comp.lang.javascript, Kam
Bansal <ka*@magickhat.com> posted :
We're using Apache 1.3 (I know, I know, there's a newer version...)
and it seems that the document.lastModified does not return the
correct date. On Netscape it shows 01/01/1970 and on IE etc it shows
the "current" date, but not the file's last mod date!!!
Your document.lastModified is a javascript string; it is derived, by
something distantly approaching but nowhere near attaining logic, from
the HTTP header Last-Modified line.

You should arrange to inspect this line as transmitted, perhaps by
telnetting into the server (can someone provide the Telnet grammar?). I
expect that you will find it to be absent, or possibly corrupt. The
correct format is :-
Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT

Note : web-based page validation services often report HTTP headers.

I've searched the net and I've seen many posts with simular issues,
but I cannot find the solution...is there one??? Is there a setting in
my https.conf file???


For that you should consult a servers newsgroup.
Did you read the FAQ of this newsgroup, though? See footer.

When posting date-related questions, you should give the relevant
locations; it sometimes helps. What time does Netscape show?

ANNOUNCE to regulars : The digit in js-date1.htm, js-date2.htm, js-
date3.htm, and the first part of a shuffled js-date4.htm should in each
case be decremented, with effect from August 1st, BST. I need more
digits ...

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> JL / RC : FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.