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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user