Bug 184670 - Copy & paste of events in a different TZ than the view's TZ assigns wrong start time
Summary: Copy & paste of events in a different TZ than the view's TZ assigns wrong sta...
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.2.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
: 214451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-17 16:20 UTC by Reinhold Kainhofer
Modified: 2012-11-19 22:17 UTC (History)
4 users (show)

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 Reinhold Kainhofer 2009-02-17 16:20:54 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

My view's TZ is Europe/Vienna and I have an event in UTC at 12:00-18:00 (displayed at 13:00-19:00 CET). I copy this event (Ctrl+C), mark a time span of e.g. 9:00-12:00 with the mouse and paste the event (Ctrl+V).

The pasted event will be displayed only from 10:00-12:00 rather than from 9:00-12:00. Looking at the editor dialog, one can see that the start time (9:00) is assigned as UTC (9:00 UTC == 10:00 CET), while the end time (12:00) is assigned as local time (CET).  

Start and end times should at least use the same time zone spec consistently. If they use the same TZ as the original copied event, then the time needs to be adjusted so that the event happens exactly at the selected time span local time.
Comment 1 Sergio Martins 2009-05-31 18:45:23 UTC
SVN commit 976010 by smartins:

When CalendarView::edit_paste() sets dtEnd it should preserve the original time zone.

CCBUG: 184670


 M  +2 -1      calendarview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=976010
Comment 2 Sergio Martins 2009-05-31 18:56:47 UTC
That commit fixes the second bug, dtEnd has now the correct timezone.

We still need to fix dtStart.

pastedIncidence = factory.pasteIncidence( date, &time );

time has view TZ, but kcal thinks it has incidence TZ.
Comment 3 SatanClaus 2009-11-22 14:46:56 UTC
Hi, this bug still exists and is pretty annoying for anyone not in UTC (for me it's MET), any update on this?
Comment 4 Sergio Martins 2010-03-14 06:50:51 UTC
*** Bug 214451 has been marked as a duplicate of this bug. ***
Comment 5 M G Berberich 2010-03-14 12:58:15 UTC
seems to work for me in 4.3.4 – at least in wintertime.
Comment 6 Reinhold Kainhofer 2010-03-14 13:17:54 UTC
Does not work here with KOrganizer 4.3.5 and with KOrganizer 4.4.1.

Actually, here it does not even work when pasting events with the same TZ as the view: I'm using View TZ Austria. I have an event in TZ Europe/Vienna, copy it, select the time span 12:00-15:00 on March 12 (i.e. winter time, UTC+1) and paste the event. 

The pasted event will appear in Korganier from 13:00-15:00 (note that the start time is shifted exactly by the offset to UTC, while the end time is correct). If I try to paste the event e.g. on May 5 12:00-15:00, it will be inserted from 14:00-15:00
Comment 7 M G Berberich 2010-08-04 09:56:43 UTC
The problem still exists in 4.4.5
Comment 8 Sergio Martins 2012-11-19 22:16:01 UTC
Working fine for me in 4.10.

If you're going to test, do it once 4.10 is released, there's been some work regarding copy-paste.