mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
71dda4e721
The default is OFF, even if you have gnomepilot installed already. Problem reported by: Heath Nielson <heath@cs.byu.edu>
20 lines
592 B
Plaintext
20 lines
592 B
Plaintext
--- 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;
|
|
}
|