Bug 1139345 - Check of last tasks update time faulty; r=Fallen

This commit is contained in:
Geoff Lankow 2015-03-05 12:15:41 +13:00
Родитель 885999ae12
Коммит 63bf726c42
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -218,15 +218,13 @@ calGoogleCalendar.prototype = {
return tasksURI;
},
STALE_TIME: 7 * 86400,
getUpdatedMin: function getUpdatedMin(aWhich) {
let updatedMin = null;
let lastUpdated = this.getProperty("lastUpdated." + aWhich);
if (lastUpdated) {
updatedMin = cal.createDateTime(lastUpdated);
let lastWeek = cal.now();
lastWeek.second -= this.STALE_TIME;
lastWeek.day -= 7;
if (updatedMin.compare(lastWeek) <= 0) {
cal.LOG("[calGoogleCalendar] Last updated time for " + aWhich +
" is very old, doing full sync");