Version: 3.1 (using KDE KDE 3.1) Installed from: Compiled From Sources Compiler: gcc 3.2.2 Running on IRIX 6.5 and fully operational OS: Irix The Marcus Bains line is showing the time in UTC rather than my local time, regardless how I set 'Time Zone' and 'TimeZoneId' in korganizerrc. I see that this has been reported for BSD and Solaris, but all I see are "fixed in HEAD" with no explanation of what HEAD is, and a Solaris patch... but this has not been addressed for my IRIX compiled version. Thank you
I've rebuilt QT and KDE all the way up to v3.1.1. The Marcus Bains line is still changing to UTC after about 5 minutes of starting up. Could you possibly point me to the place in the code where the time used for this application can be hardwired to offset to my local time? If I can get a clue as to where this adjustment is made, perhaps I can develop an IRIX condition for timezones. IRIX does not locate its timezone information in BSD /usr/share as the code is presently written.
The Marcus Bains line uses the Qt function QDateTime::currentDateTime() to get the time. This in turn uses the time zone from the system. I'm pretty sure that the Qt function works. The problem seems to be that KOrganizer somewhere accidently sets the time zone of the system to UTC. In KOPrefs there is a call to tzset(). This might set the timezone to UTC. As this shouldn't be called, when a TimeZoneId is set the problem might be elsewhere. The other possible source of the problem could be the funtion icaltime_utc_offset() in libical/src/libical/icaltime.c. This calculates the offset of the given time zone. If the code sets the timezone to UTC as a side effect this could also explain the problem. I would be very interested in some deeper analysis of the problem. As I can't reproduce it on my system I have to reply on reports like yours.
On NetBSD the problem of wrong time zones was solved as described in http://bugs.kde.org/show_bug.cgi?id=61798 Maybe IRIX also needs unsetenv("TZ") instead of putenv("TZ") ? If you create an event in korganizer and save the calendar, are the dates in the ics file correctly converted to UTC, or do they appear at the same time as in KOrganizer? In the latest KOrganizer CVS version the times should be correctly converted to UTC, but I suspect they aren't because the timezone is never reset... Reinhold Reinhold
Replaced kde@mrdo.com with null@kde.org due to bounces by reporter
The line should use the timezone selected in the KOrganizer configuration, not the system time. I keep my system time set to UTC, but I don't want all my programs to use it. There really should be a user-level configuration for timezone in KDE...
This is not IRIX-related. I have this issue on Linux.
Just wondering if this is still a bug in the KOrganizer with KDE 3.5.4? It has been a couple years since anyone commented on this bug.
It's been a week and I haven't heard back from any of the bug reporters. And since it has been more than 2 years since the original report I don't think we need to keep this bug report open. If this is still a problem in the KOrganizer from KDE 3.5.4 please re-open.
I have this bug in KDE 3.5.5, the Marcus Bains line is reporting UTC rather than local system time. It would be very nice if one of the suggestions above was used, allowing to choose/select/configure the time which korganizer uses.