From fe2b72924bf4c745c517a5204cd99b5f75a86824 Mon Sep 17 00:00:00 2001 From: Edward Lee Date: Thu, 26 Feb 2009 12:34:54 -0800 Subject: [PATCH] Bug 480381 - "lastsync" pref is sometimes a number and sometimes a string --- services/sync/modules/service.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/services/sync/modules/service.js b/services/sync/modules/service.js index bfa74bb0a3c..8c7dd0c82b4 100644 --- a/services/sync/modules/service.js +++ b/services/sync/modules/service.js @@ -697,8 +697,7 @@ WeaveSvc.prototype = { } if (!this._syncError) { - Svc.Prefs.reset("lastsync"); - Svc.Prefs.set("lastsync", new Date().toString()); + Svc.Prefs.set("lastSync", new Date().toString()); this._log.info("Sync completed successfully"); } else this._log.warn("Some engines did not sync correctly"); @@ -775,8 +774,7 @@ WeaveSvc.prototype = { } if (!this._syncError) { - Svc.Prefs.reset("lastsync"); - Svc.Prefs.set("lastsync", Date.now()); + Svc.Prefs.set("lastSync", new Date().toString()); this._log.info("Sync completed successfully"); } else this._log.warn("Some engines did not sync correctly");