New issue
Advanced search Search tips

Issue 875300 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 875299
Owner: ----
Closed: Aug 18
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

document.lastModified using html access time vs. actual html modified time

Reported by mariajca...@gmail.com, Aug 17

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Steps to reproduce the problem:
Create the following html file and save locally. Open in both Chrome and IE to see behavior difference.

<html>
<head>
<title>test</title>
</head>
<body>

<script language="Javascript">
document.write("Last Modified on: " +document.lastModified +"");
</SCRIPT>
<p id="demo"></p>

</body>
</html>

What is the expected behavior?
I expect to see the timestamp for when the file was saved (aka, the actual last modified time of the html file).

What went wrong?
When opening in chrome it displays the CURRENT time (aka last accessed time).

Did this work before? N/A 

Chrome version: 68.0.3440.106  Channel: stable
OS Version: 10.0
Flash Version:
 
test.html
203 bytes View Download
Mergedinto: 875299
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment