View | Details | Raw Unified | Return to bug 32511 | Differences between
and this patch

Collapse All | Expand All

(-)gnomecard/address-conduit.c (-1 / +9 lines)
Lines 296-303 Link Here
296
{
296
{
297
	if (card->rev.prop.used) {
297
	if (card->rev.prop.used) {
298
		time_t syncTime, revTime;
298
		time_t syncTime, revTime;
299
#ifdef __FreeBSD__
300
      struct tm *tmptm;
301
#endif
299
		syncTime = GET_CONDUIT_DATA(abs)->dbi->pu->lastSyncDate;
302
		syncTime = GET_CONDUIT_DATA(abs)->dbi->pu->lastSyncDate;
300
		revTime = mktime(&card->rev.tm)-timezone;
303
#ifdef __FreeBSD__
304
      tmptm = localtime(&syncTime);
305
      revTime = mktime(&card->rev.tm) - tmptm->tm_gmtoff;
306
#else
307
      revTime = mktime(&card->rev.tm)-timezone;
308
#endif
301
		LOG("Comparing rev time %lu with sync time %lu",revTime,syncTime);
309
		LOG("Comparing rev time %lu with sync time %lu",revTime,syncTime);
302
		if (revTime > syncTime) return TRUE;
310
		if (revTime > syncTime) return TRUE;
303
	}
311
	}

Return to bug 32511