blob: 7a5f6345a27e2200e233ff55e989f8a7cacedeec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- gnomecard/address-conduit.c.orig Tue Mar 14 01:39:27 2000
+++ gnomecard/address-conduit.c Fri Jun 2 12:36:08 2000
@@ -241,8 +241,16 @@
{
if (card->rev.prop.used) {
time_t syncTime, revTime;
+#ifdef __FreeBSD__
+ struct tm *tmptm;
+#endif
syncTime = GET_CONDUIT_DATA(abs)->dbi->pu->lastSyncDate;
+#ifdef __FreeBSD__
+ tmptm = localtime(&syncTime);
+ revTime = mktime(&card->rev.tm) - tmptm->tm_gmtoff;
+#else
revTime = mktime(&card->rev.tm)-timezone;
+#endif
LOG("Comparing rev time %lu with sync time %lu",revTime,syncTime);
if (revTime > syncTime) return TRUE;
}
|