Bug 480381 - "lastsync" pref is sometimes a number and sometimes a string

This commit is contained in:
Edward Lee 2009-02-26 12:34:54 -08:00
parent b8a8dd5c93
commit fe2b72924b

View File

@ -697,8 +697,7 @@ WeaveSvc.prototype = {
} }
if (!this._syncError) { 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"); this._log.info("Sync completed successfully");
} else } else
this._log.warn("Some engines did not sync correctly"); this._log.warn("Some engines did not sync correctly");
@ -775,8 +774,7 @@ WeaveSvc.prototype = {
} }
if (!this._syncError) { if (!this._syncError) {
Svc.Prefs.reset("lastsync"); Svc.Prefs.set("lastSync", new Date().toString());
Svc.Prefs.set("lastsync", Date.now());
this._log.info("Sync completed successfully"); this._log.info("Sync completed successfully");
} else } else
this._log.warn("Some engines did not sync correctly"); this._log.warn("Some engines did not sync correctly");