1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/deskutils/korganizer/files/patch-aa
Brian Somers 1bc1fdd176 Upgrade, unbreak & Elfify
The DST stuff looks broken.
1998-10-02 18:21:26 +00:00

37 lines
934 B
Plaintext

--- src/calobject.cpp.orig Fri Oct 2 13:47:51 1998
+++ src/calobject.cpp Fri Oct 2 13:49:31 1998
@@ -79,13 +79,17 @@
tmpStr = config->readEntry("Time Zone");
int dstSetting = config->readNumEntry("Daylight Savings", 0);
extern long int timezone;
+#if 0
extern int daylight;
+#endif
time_t curtime;
curtime = time(0);
localtime(&curtime);
int hourOff = - ((timezone / 60) / 60);
+#if 0
if (daylight)
hourOff += 1;
+#endif
QString tzStr;
tzStr.sprintf("%.2d%.2d",
hourOff,
@@ -96,6 +100,7 @@
config->writeEntry("Time Zone", tzStr.data());
}
+#if 0
// if daylight savings has changed since last load time, we need
// to rewrite these settings to the config file.
if ((daylight && !dstSetting) ||
@@ -103,6 +108,7 @@
config->writeEntry("Time Zone", tzStr.data());
config->writeEntry("Daylight Savings", daylight);
}
+#endif
setTimeZone(tzStr.data());