Bug 69091 - [test case] document.lastModified always returns 0 (4:00 pm - Wednesday, December 31st, 1969)
Summary: [test case] document.lastModified always returns 0 (4:00 pm - Wednesday, Dece...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: 3.1.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 19:21 UTC by Mike Cummings
Modified: 2012-06-18 14:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
test case (155 bytes, text/html)
2003-11-26 21:25 UTC, Stephan Kulow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Cummings 2003-11-26 19:21:03 UTC
Version:            (using KDE KDE 3.1.4)
Installed from:    SuSE RPMs
OS:          Linux

When viewing html files via smb protocol from linux server it always reports document.lastModified as 4:00 pm - Wednesday, December 31st, 1969 i.e.
<p> Page last modified on:
<script language="Javascript" type="text/javascript">
document.write(document.lastModified());
</script>
</p>

I just checked and it seem to also do this with normal http:// pages also.

I saw report that an older CVS corrected this but it seems to have reappear.
Comment 1 Stephan Kulow 2003-11-26 21:25:07 UTC
Created attachment 3428 [details]
test case

it works for file:/ - let's see for http
Comment 2 Stephan Kulow 2003-11-26 21:27:57 UTC
bugs.kde.org doesn't give any info about last modified, but mozilla just takes the current date in that case while konqueror returns nothing
Comment 3 Sashmit Bhaduri 2003-11-27 20:26:28 UTC
I wonder what IE does.. we probably should do what it does, since document.lastModified is depreciated, and not standardized in any of w3c's DOM standards.
Comment 4 Mike Cummings 2003-11-30 07:35:13 UTC
Subject: Re:  document.lastModified always returns 0 (4:00 pm - Wednesday, December 31st, 1969)         

Which version of the DOM dep-ed it because it's part
of javascript since version 1.0 and is in all versions
I've looked at since then. Maybe 1.5 but why when I've
seen it used on so many site and it is still sent by
web servers because its part of HTTP 1.x and also part
of smb. All that has to be done is a little massaging
to get it in the right format?

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

Comment 5 Myriam Schweingruber 2012-06-18 14:10:43 UTC
Message from the Bugsquad and Konqueror teams:
This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore.
If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report.
Thank you for your understanding.