Bug 61798 - korganiser display wrong time on NetBSD
Summary: korganiser display wrong time on NetBSD
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: NetBSD pkgsrc NetBSD
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-29 14:52 UTC by Mark Davies
Modified: 2003-10-26 15:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Davies 2003-07-29 14:52:32 UTC
Version:            (using KDE KDE 3.1.3)
Installed from:    NetBSD pkgsrc
OS:          NetBSD

If TZ environment variable is not set on NetBSD then once a
calendar is loaded into korganiser time displayed/used is UTC
irrespective of localtime.

Following patch fixes:

--- libical/src/libical/icaltime.c.orig 2002-09-28 06:49:07.000000000 +1200
+++ libical/src/libical/icaltime.c
@@ -141,7 +141,7 @@ void unset_tz(struct set_tz_save savetz)

        free(orig_tzid);
     } else {
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
        unsetenv("TZ");
 #else
        putenv("TZ"); /* Delete from environment */
Comment 1 Reinhold Kainhofer 2003-10-26 15:49:41 UTC
Subject: kdepim/libical/src/libical

CVS commit by kainhofe: 

NetBSD has to be treated similar to FreeBSD. Applied Mark Davies' patch for bug 61798 (He says this patch fixes the NetBSD time zone problem. I don't have a machine to test...).

CCMAIL: 61798-done@bugs.kde.org


  M +2 -2      icaltime.c   1.7


--- kdepim/libical/src/libical/icaltime.c  #1.6:1.7
@@ -142,5 +142,5 @@ void unset_tz(struct set_tz_save savetz)
         free(orig_tzid);
     } else {
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
         unsetenv("TZ");
 #else