[Bug 286567] Re: korganizer displays old appointments in UTC

2021-02-06 Thread Bug Watch Updater
** Changed in: kdepim
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/286567

Title:
  korganizer displays old appointments in UTC

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdepim/+bug/286567/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 286567]

2021-02-06 Thread Glen Ditchfield
Git commit 2324098a8ffcf59d4e88c2c84ba2a288b8e9e783 by Glen Ditchfield, on 
behalf of Glen Ditchfield.
Committed on 04/02/2021 at 16:07.
Pushed by gditchfield into branch 'release/20.12'.

Fix month view's display of end-of-day instances

If a non-all-day instance extends to the end of a day, its dtEnd will
be 00:00 of the next day.  The month view incorrectly shows the instance
occurring on both days.
FIXED-IN: 5.16.3

M  +5-1src/month/monthitem.cpp

https://invent.kde.org/pim/eventviews/commit/2324098a8ffcf59d4e88c2c84ba2a288b8e9e783

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/286567

Title:
  korganizer displays old appointments in UTC

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdepim/+bug/286567/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 286567] Re: korganizer displays old appointments in UTC

2021-02-02 Thread Bug Watch Updater
** Changed in: kdepim
   Status: Unknown => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/286567

Title:
  korganizer displays old appointments in UTC

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdepim/+bug/286567/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 286567]

2021-02-02 Thread Bug-janitor
A possibly relevant merge request was started @
https://invent.kde.org/pim/eventviews/-/merge_requests/19

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/286567

Title:
  korganizer displays old appointments in UTC

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdepim/+bug/286567/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 286567] Re: korganizer displays old appointments in UTC

2016-09-26 Thread Bug Watch Updater
Launchpad has imported 44 comments from the remote bug at
https://bugs.kde.org/show_bug.cgi?id=165212.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2008-06-28T17:07:43+00:00 Georg Wittenburg wrote:

Version:(using KDE 4.0.83)
Installed from:Debian testing/unstable Packages

There is some inconsistency in korganizer how time zones are handled: An
appointment that appears at the correct local time in the calendar view
is displayed with times in UTC on mouse-over, in the context view (left
below the month view) and when editing. Further, the UTC times are also
displayed in the "Upcoming Events" area of Kontact's summary view.

The expected behavior is that time zones are handled consistently
matching the setting in Configure Calender -> Date & Time -> Timezone
(which is set to Europe/Berlin, as opposed to UTC, in my case).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/0


On 2008-06-28T17:39:39+00:00 Cgiboudeaux wrote:

Could you please export one of the bugged entry ? (right click on the
event, send as Ical file) to my email address please (kropx77 at
gmail.com).


Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/1


On 2008-06-28T18:17:57+00:00 Georg Wittenburg wrote:

Done. If it helps: This entry has been generated before I switched
KDEPIM to 4.x, so maybe it's a question of how korganizer 4.x handles
data from 3.x.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/2


On 2008-06-28T18:20:20+00:00 Cgiboudeaux wrote:

Thank you, I'm looking for the reason.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/3


On 2008-06-29T02:00:46+00:00 Cgiboudeaux wrote:

ok so. The event you sent me doesn't mention any timezone which may
explain why you see the event as UTC (I have anonymized it) :

BEGIN:VCALENDAR
PRODID:-//K Desktop Environment//NONSGML libkcal 3.5//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
DTSTAMP:20080628T161217Z
ORGANIZER;CN=Event leader:MAILTO:addr...@domain.tld
CREATED:20080613T082059Z
UID:libkcal-668003459.247
LAST-MODIFIED:20080613T082059Z
SUMMARY:Event
DTSTART:20080625T07Z
DTEND:20080625T08Z
TRANSP:OPAQUE
END:VEVENT

END:VCALENDAR


Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/4


On 2008-06-29T02:10:35+00:00 Cgiboudeaux wrote:

Created attachment 25681
Test event

Try importing this test event and look at 2008/06/28 events in
korganizer.

This event should display Europe/Paris as a timezone.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/5


On 2008-06-29T02:14:14+00:00 Cgiboudeaux wrote:

The main difference between my event and yours is the presence of
timezone indications :

DTSTART;TZID=Europe/Paris:20080628T20
DTEND;TZID=Europe/Paris:20080628T23


Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/6


On 2008-06-29T13:56:17+00:00 Georg Wittenburg wrote:

The test event you sent me works fine. So I guess it's really a question
of compatibility between korganizer 3.x and 4.x, as korganizer 4.x
apparently assumes UTC if no timezone information is present while
korganizer 3.x assumed my local timezone (Europe/Berlin).

Do you think it's possible to change this assumption in korganizer 4.x?
The alternative would be to run the calender files through some script
or import filter to add timezone information.


Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/7


On 2008-07-14T01:07:18+00:00 Winter-s wrote:

I double-checked, and KOrganizer from 3.5.9 and KOrganizer from 4.1
behave the same way; namely, if the date-time ends with a 'Z' it means
UTC.

To make a date-time that will occur in your local timezone you want to
not specify any timezone at all.

For example, DTSTART:20080625T07 instead of DTSTART:20080625T07Z

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/286567/comments/8


On 2008-07-19T17:20:38+00:00 Georg Wittenburg wrote:

Sorry for the late reply, and thanks fo

[Bug 286567] Re: korganizer displays old appointments in UTC

2011-02-03 Thread Bug Watch Updater
** Changed in: kdepim
   Importance: Unknown = Medium

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.
https://bugs.launchpad.net/bugs/286567

Title:
  korganizer displays old appointments in UTC

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2010-07-11 Thread Harald Sitter
Closing in favor of KDE report. Please refer there for updates. Thanks.

** Changed in: kdepim (Ubuntu)
   Status: Confirmed = Invalid

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2010-03-08 Thread Bug Watch Updater
** Changed in: kdepim
   Status: Fix Released = Confirmed

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2010-03-07 Thread Bug Watch Updater
** Changed in: kdepim
   Status: Confirmed = Fix Released

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2009-02-09 Thread Mike Eager
I added a python script at https://bugs.kde.org/show_bug.cgi?id=165212
which is similar to the ruby script.

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-26 Thread Bug Watch Updater
** Changed in: kdepim
   Status: Unknown = Confirmed

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-25 Thread Harald Sitter
I added a bug watcher for the KDE bug, so we can easily follow it's
status.

Anwho, the slowness could be what is reported as bug #258611 I am not
sure though, as I wasn't able to reproduce it.

By the way, my KOrganizer didn't store the files with dos file ending :P

** Also affects: kdepim
   Importance: Undecided
   Status: New

** Changed in: kdepim
   Importance: Undecided = Unknown
 Bugwatch: None = KDE Bug Tracking System #165212
   Status: New = Unknown

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-25 Thread Harald Sitter
I added a bug watcher for the KDE bug, so we can easily follow it's
status.

Anwho, the slowness could be what is reported as bug #258611 I am not
sure though, as I wasn't able to reproduce it.

By the way, my KOrganizer didn't store the files with dos file ending :P

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-23 Thread Tim Holy
OK, I did more reading (ruby is pretty cool). The Z substitution line can be 
changed to
line = line.sub(/Z[\r$]/,'')
and I think the script works as you intended. (The \r part is needed because 
korganizer seems to save its data in a DOS-style text file; I put the $ in 
there for safety.)

However, it turns out that the concern I raised above about not
converting the times is indeed a problem. Here's why: in scheduling,
korganizer has already done the conversion to UTC when it saves an event
in the format MMDDTHHMMSSZ. If we just strip the Z off the end
without converting to local time, then all the times will be off by the
UTC offset.

So I poked around and came up with a solution. I've attached a script
that seems to work for me. I had to install the tzinfo gem
http://tzinfo.rubyforge.org/doc/files/README.html

and I run this script with
ruby -rubygems migrateics.rb

One oddity: when I first start kontact, switching to the calendar
component of kontact now takes much longer than it used to: 20 seconds!
It used to take 4 seconds.

One other issue: suppose the script bombs on certain std.ics files (it
works on mine, but just suppose), so that it either deletes the data or
converts it into something that crashes korganizer (which I've now done
a lot recently). If the user runs the script twice, without copying the
backup std.ics from $HOME back to .kde/share/apps/korganizer in between,
then the user won't have any backup of his/her data. Would it be worth
checking to make sure that the make a backup copy step doesn't
overwrite an existing file?

Once these last points are taken care of, I imagine this script might be
ready for wider use.


** Attachment added: migrateics.rb
   http://launchpadlibrarian.net/18819861/migrateics.rb

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-23 Thread Tim Holy
See upstream bugreport http://bugs.kde.org/show_bug.cgi?id=165212. I've
put a link to this thread there, too.

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-23 Thread Tim Holy
Oh, it also turns out that it becomes much slower to scroll (i.e.,
when you hit the back and forward buttons), so much so that I will
for now keep using my old UTC-based std.ics. Drat. Presumably this is
something that could be optimized? Like I said earlier, I'm happy to
mail you my calendar file if you want to use it to callgrind korganizer
something.

Doing the migration does fix the double-printing bug, however. That's
something!

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-22 Thread Harald Sitter
There is no conversion going on.
The only changes that need to be done is attach ;TZID=#{timezone}: to 
DSTART/DTEND and remove the trailing Z, in fact just removing the Z should b 
enough to force KOrganizer to use the local time. It is however adding the 
timezone from /etc/timezone to ensure it uses the correct one.

I attached yet a new try to resolve the issue, which should actually
work with ruby1.8 in Intrepid. It also features a more verbose output of
what is going on. If that doesn't work either you can write a script
yourself or (if you trust me enough ;-) send me the calendar file so I
don't have to be poking in the dark.

** Attachment added: migrateics.rb
   http://launchpadlibrarian.net/18795264/migrateics.rb

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-22 Thread Tim Holy
OK, thanks for the updated script! It runs to completion, and indeed
prints debugging info. The curious part is that the typical event looks
like this:

..BEGIN:VEVENT  
 
..DTSTAMP:20081022T164250Z  
 
..ORGANIZER;CN=Tim Holy:MAILTO:[EMAIL PROTECTED]
..CREATED:20060412T212539Z  
 
..UID:libkcal-1053224003.358
 
..SEQUENCE:1
 
..LAST-MODIFIED:20060413T131556Z
 
..SUMMARY:Some event   
..PRIORITY:3
 
..LINESTARTSWITH DSTART: DTSTART:20060428T154500Z   
 
..LINESTARTSWITH DSTART GSUBBED: DTSTART:20060428T154500Z   
 
..LINESTARTSWITH DSTART: DTEND:20060428T163000Z 
 
..LINESTARTSWITH DSTART GSUBBED: DTEND:20060428T163000Z 
 
..TRANSP:OPAQUE 
 
..END:VEVENT
 

So, oddly, the gsubbing doesn't seem to be doing anything: the gsubbed
version is the same as the original.

Ah, but wait! I made a stab in the dark and replaced the two gsub lines with
line = line.gsub(Z,)
line = line.gsub(#{replace}:,#{replace};TZID=#{timezone}:)
i.e., inserted the line =  part in front. This seems to work properly, with 
one funny exception: any line that already had a TZID (e.g., appointments 
I've made since upgrading and working this issue out) got replaced with a TID 
because of the gsubbing Z to a . So, is there a way of insuring that the 
match to Z occurs only at the end of the line?

I'm happy to send you the calendar file off-line, if you wish. You can
email me directly, my last name followed by wustl and then a dot and
then edu (parse that, spammers!)

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Tim Holy
Well, it does cause a bug: evening appointments made here in the
America/Chicago timezone end up being displayed on two consecutive days.
(See attached screenshot; Monday's Soccer and Juniors should _not_
be replicated on Tuesday.)

Aside from dozens of recurring items, I also have non-recurring events
scheduled as far as 2 years in advance. It must be hundreds of items.
That does mean that this bug will be with me for years to come.

Any chance of a conversion script? One that would insert proper timezone
info into the calendar file?

** Attachment added: korg_snapshot.jpeg
   http://launchpadlibrarian.net/18765810/korg_snapshot.jpeg

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Harald Sitter
Well, the display issue is actually a different one ;-)

I guess writing a conversion script wouldn't be much work, but we can
not run it by default because of the reason stated in my former comment.

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Harald Sitter
I am attaching a script to convert the calendar files. By default it will use 
$HOME/.kde/share/apps/korganizer/std.ics, you can change this by passing a 
different file as argument to the script
   ruby migrateics.rb /home/harald/.kde/share/apps/korganizer/private.ics 
for example.

It copies the file to $HOME before doing anything, in case something
goes wrong :)

** Attachment added: migrateics.rb
   http://launchpadlibrarian.net/18766755/migrateics.rb

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Tim Holy
Thanks for the script! That's incredibly generous of you to provide this
---to people like me who don't tend to make appointments in many
different timezones, this will save a lot of manual work.

I think I almost have your script working, with the one small exception
that the output std.ics (as well as the backup in $HOME) are blank.
:-) Fortunately, being paranoid by nature I made my own backup, so no
harm's done.

To run it I had to install libruby1.8-extras as well as ruby1.9 (because
of gsub). Is the version mismatch the probable cause of the script
error?

Here's what I did to run it, and its output:
[EMAIL PROTECTED]:~$ ruby1.9 ./migrateics.rb
copy backup of /home/tim/.kde/share/apps/korganizer/std.ics to /home/tim
opening /home/tim/.kde/share/apps/korganizer/std.ics for editing
closing file object #File:0x91432ec, finished editing

But the resulting files are blank. Any thoughts?

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Tim Holy
On Tuesday 21 October 2008, Harald Sitter wrote:
 You are running Intrepid, right?

Yes. I just found libruby-extras (I had only noticed libruby1.8-extras 
before) and installed it. Then I get this output:

[EMAIL PROTECTED]:~$ ruby1.9 ./migrateics.rb
copy backup of /home/tim/.kde/share/apps/korganizer/std.ics to /home/tim
opening /home/tim/.kde/share/apps/korganizer/std.ics for editing
./migrateics.rb:52:in `block (2 levels) in main': undefined method `gsub!' 
for nil:NilClass (NoMethodError)
from ./migrateics.rb:51:in `each'
from ./migrateics.rb:51:in `block in main'
from ./migrateics.rb:47:in `each'
from ./migrateics.rb:47:in `main'

This time, the copy of std.ics in $HOME is intact. I'm guessing I'm missing a 
package that defines the gsub method?

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Tim Holy
Oh, and on the display issue is actually a different one, I agree this
observation does add some new elements---and I suspect you've already
diagnosed the problem better than I. However, at the risk of being
unnecessarily explicit: note that those evening appointments span 2 days
as measured by UTC (6pm-7:30pm America/Chicago is 2300-0030 UTC). So it
seems that the decision about which days to display the event on is
being made before the conversion to the local timezone. So this new
bug should be fixed by doing the timezone conversion first, I'd guess.

That said, I bet the double-display bug won't be triggered nearly as
often if the std.ics file is converted to use local timezones first. So
your script (once it works more broadly) should resolve this problem for
many people, even if there's a second problem that also needs to be
addressed.

Should I open a separate bug report for the double-display problem?

On scripts: also note http://chandlerproject.org/Projects/OlsonConvert.
However, when I try to run this script on my std.ics file, I get a year
is out of range error.

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Harald Sitter
You are running Intrepid, right?

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Harald Sitter
I attached a modified script, maybe it works better. I am not exaclty
sure why it fails there.

Anyhow the extras package is only necessary for the backup task. gsub!
as well as everything else (besides the copy operation obviously ;-) is
part of the core ruby modules, so I don't see how that could be the
problem.

** Attachment added: migrateics.rb
   http://launchpadlibrarian.net/18773605/migrateics.rb

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Tim Holy
On Tuesday 21 October 2008, Harald Sitter wrote:
 I attached a modified script, maybe it works better. I am not exaclty
 sure why it fails there.

 Anyhow the extras package is only necessary for the backup task. gsub!
 as well as everything else (besides the copy operation obviously ;-) is
 part of the core ruby modules, so I don't see how that could be the
 problem.

Sorry to not be able to report success, but I'm still getting an undefined 
method `gsub!' for nil:NilClass error. Does nil:NilClass mean it doesn't know 
the class of line? Sorry, I just don't know ruby at all, so I'm pretty 
useless here.

For completeness, here are my ruby-related packages:
[EMAIL PROTECTED]:~$ dpkg -l *ruby* | grep ii
ii  libbreakpoint-ruby1.8  0.5.1-2  

Ruby library for adding breakpoints to Ruby
ii  libcmdparse2-ruby1.8   2.0.2-2  

Advanced command line parsing module support
ii  libdaemons-ruby1.8 1.0.10-2 

Ruby daemons library
ii  liblog4r-ruby1.8   1.0.5-7  

A logging library for Ruby
ii  libmmap-ruby1.80.2.6-3  

Ruby interface to manage memory-mapped file
ii  libncurses-ruby1.8 1.1-3

ruby Extension for the ncurses C library
ii  libopenssl-ruby1.8 1.8.7.72-1   

OpenSSL interface for Ruby 1.8
ii  libreadline-ruby1.81.8.7.72-1   

Readline interface for Ruby 1.8
ii  libruby-extras 0.4ubuntu2   

a bundle of additional libraries for Ruby
ii  libruby1.8 1.8.7.72-1   

Libraries necessary to run Ruby 1.8
ii  libruby1.8-extras  0.4ubuntu2   

a bundle of additional libraries for Ruby 1.
ii  libruby1.9 1.9.0.2-7

Libraries necessary to run Ruby 1.9
ii  ruby   4.2  

An interpreter of object-oriented scripting
ii  ruby1.81.8.7.72-1   

Interpreter of object-oriented scripting lan
ii  ruby1.91.9.0.2-7

Interpreter of object-oriented scripting lan
ii  rubygems1.81.3.0~RC1really1.2.0-2ubuntu3

package management framework for Ruby librar



 ** Attachment added: migrateics.rb
http://launchpadlibrarian.net/18773605/migrateics.rb

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


Re: [Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Tim Holy
On Tuesday 21 October 2008, Harald Sitter wrote:
 I attached a modified script, maybe it works better. I am not exaclty
 sure why it fails there.

OK, I googled and I think I found part of the problem, but I don't understand 
the whole thing. line turns out to be empty sometimes.  So I changed line 54 
from end to end if line and now it runs without error. But, it turns out 
that it never executes the loop: it seems that line never contains valid 
input. I tried changing the split character from \n to : or a space and still 
never had the loop execute (as determined by putting a 'print Looping\n' 
line as the first element of the loop).

However, str is not empty; a print str reveals the entire ics file.



 Anyhow the extras package is only necessary for the backup task. gsub!
 as well as everything else (besides the copy operation obviously ;-) is
 part of the core ruby modules, so I don't see how that could be the
 problem.

 ** Attachment added: migrateics.rb
http://launchpadlibrarian.net/18773605/migrateics.rb

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Harald Sitter
New try.

In theory line can never be nil, it can be an empty string (i.e. ) but never 
nil (which would be nothing at all). I add a control strucutre to prevent an 
execution of gsub on line, when line is nil.
I am not too sure if this works though, in order to evaluate the variable the 
variable mustn't be nil (in theory again ;-)

Anyway, please give it a try.

** Attachment added: migrateics.rb
   http://launchpadlibrarian.net/18781322/migrateics.rb

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


Re: [Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-21 Thread Tim Holy
Definite progress, in that it processes the entire file. The lines it changes 
(because they start with DTSTART or DTEND), however, come out blank, rather 
than containing data. This causes korganizer to crash on startup.

As I try to understand more ruby, it looks to me like your script just 
prepends my timezone but does not actually convert the time to my timezone. 
Won't that introduce a problem? I.e., the time will no longer be the 
equivalent of the UTC? Or does Z mean the local timezone?

I'm beginning to wonder if the more straightforward approach would be to look 
for regexps of the form [0-9]\{8\}T[0-9]\{6\}Z (8 digits followed by T 
followed by 6 digits followed by Z) and parse the string to convert the time. 
If this is something that you are interested in seeing done, I'd be delighted 
to keep working with you on this; if you're growing tired of this and don't 
think others will get much benefit out of it, I might try to code something up 
in matlab (a language I am fluent in) for my own purposes only.

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] [NEW] korganizer displays old appointments in UTC

2008-10-20 Thread Tim Holy
Public bug reported:

I just upgraded to intrepid beta. All of the appointments display
correctly in the calendar view, but if I click on an event, the more
detailed view shows the event in UTC. Similarly, double-clicking the
event so that I can edit it also displays all times in UTC. However,
entering a new event causes it to display in my own timezone in all
views.

dpkg -l korganizer output:
ii  korganizer4:4.1.2-0ubuntu1  KDE 
personal organizer

** Affects: kdepim (Ubuntu)
 Importance: Undecided
 Status: New

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in ubuntu.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 286567] Re: korganizer displays old appointments in UTC

2008-10-20 Thread Harald Sitter
The problem is that KDE 3 didn't store the timezone along the time, so KDE 4 
apparently assumes it is UTC and does the default operations for not-locale 
times, it translates them into your locale one. 
However, the entry in the calendar file itself is not changed, and the general 
assumption seems to be that editing an entry should by default use the entries 
time in a non localized manner (or maybe that just applies to such entries 
without time zone definition).

Anyway, I am not sure this actually should be changed/can be changed in a 
sensible way. There probably are cases where you want to keep a UTC using file. 
KOrganizer can't determine if the file is applying to that use case, of it is 
just a KDE 3 one.
So my point of view is that as long as the event shows correctly in the 
calendar view this issue is only of very minor importance, recurring ones, 
which would be most affected I guess, would only need to be canged once anyway.

** Changed in: kdepim (Ubuntu)
   Importance: Undecided = Low
   Status: New = Confirmed

-- 
korganizer displays old appointments in UTC
https://bugs.launchpad.net/bugs/286567
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs