www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f74760b8ad1dfe59973e94826684f88b6189b3ca
parent 905c754b6b1b11cd10a645057a68710884673452
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  9 Mar 2010 05:43:23 +0000

Interpret file mod times below 1 as 1


Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -3028,7 +3028,14 @@ Zotero.Item.prototype.__defineGetter__('attachmentModificationTime', function () return undefined; } - return file.lastModifiedTime; + var fmtime = file.lastModifiedTime; + + if (fmtime < 1) { + Zotero.debug("File mod time " + fmtime + " is less than 1 -- interpreting as 1", 2); + fmtime = 1; + } + + return fmtime; });