Bug 56679 - IRIX: Marcus Bains line is UTC
Summary: IRIX: Marcus Bains line is UTC
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 3.1
Platform: Compiled Sources IRIX
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-31 21:35 UTC by Unknown
Modified: 2006-11-02 06:09 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 Clarence Donath 2003-03-31 21:35:44 UTC
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
Comment 1 Clarence Donath 2003-04-22 15:32:23 UTC
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. 
 
Comment 2 Cornelius Schumacher 2003-04-22 15:54:10 UTC
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. 
 
Comment 3 Reinhold Kainhofer 2003-10-26 15:57:22 UTC
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
Comment 4 Stephan Kulow 2004-05-31 20:35:04 UTC
Replaced kde@mrdo.com with null@kde.org due to bounces by reporter
Comment 5 Luke-Jr 2004-07-09 01:17:26 UTC
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...
Comment 6 Luke-Jr 2004-08-25 00:39:24 UTC
This is not IRIX-related. I have this issue on Linux.
Comment 7 Allen Winter 2006-09-12 05:09:37 UTC
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.
Comment 8 Allen Winter 2006-09-21 04:16:59 UTC
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.
Comment 9 Nathan Eckenrode 2006-11-02 06:09:32 UTC
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.