From 13de37cea7b7aa84b2fc4d07d1476268444132c9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 1 Jul 2008 20:44:43 +0000 Subject: [PATCH] Set auto-sync expiry to September 1, 2008 --- chrome/content/zotero/xpcom/sync.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index ad2a784f1a..7580be7481 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -381,6 +381,12 @@ Zotero.Sync.Server = new function () { this.setSyncIcon = setSyncIcon; this.__defineGetter__('enabled', function () { + // Set auto-sync expiry + var expiry = new Date("September 1, 2008 00:00:00"); + if (new Date() > expiry) { + return false; + } + return this.username && this.password; });