1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 19:47:58 +01:00

Check for a 'bogus' date (Firefox return the year 1970)

This commit is contained in:
mac
2007-11-13 12:54:44 +00:00
parent cbc6785802
commit 1ff3018058

View File

@@ -626,7 +626,7 @@ vimperator.Buffer = function () //{{{
var lastModVerbose = new Date(window.content.document.lastModified).toLocaleString();
var lastMod = new Date(window.content.document.lastModified).toLocaleFormat("%x %X");
// FIXME: probably unportable across differnet language versions
if (lastModVerbose == "Invalid Date")
if (lastModVerbose == "Invalid Date" || new Date(window.content.document.lastModified).getFullYear() == 1970)
lastModVerbose = lastMod = null;
// Ctrl-g single line output