LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2013, 02:49 AM   #1
JWilliamCupp
Member
 
Registered: Jul 2005
Location: Indiana, U.S.A.
Distribution: Fedora
Posts: 57

Rep: Reputation: 15
Evolution Calendar -- Make Appointments Time-Zone-Less


How can I create an entry in Evolution that does not store a time zone entry? I know how to set a different time zone than the one I am in, and I know how to hide the time zone setting, but these do not solve the problem.

Scenario. Suppose I work for a company with several offices. I want to make an entry "9:00 a.m. Daily Staff Meeting." Now when I re-locate temporarily to a branch office, I still want that to show on my calendar at 9:00 LOCAL TIME. Each time I change the time zone settings, all of my stored events change to a different time of the day.

Is there any way to record events so that they are always displayed in local time, regardless of any subsequent changes to the time zone setting?
 
Old 01-24-2013, 09:00 PM   #2
irneb
Member
 
Registered: Apr 2010
Location: Jo'burg SA
Distribution: Kubuntu, Lubuntu, Fedora, FreeBSD
Posts: 201

Rep: Reputation: 66
I don't think any calendaring system would work that way. The event is always stored in UCT time (or at least should be if it's a decent calendar system). Then when displaying it converts that time to your local setting. This is as designed, otherwise you'd get some weird stuff like scheduling a Skype conference at 9:00 AM to someone a few zones earlier - only to get a nasty email from them about you scheduling the event but not starting the call!

All I can think of would be to get some custom program / script which might modify your calendar files (sorry I don't know how Evo stores these - perhaps as ICS/VCS). If so that could then adjust all times by the difference between your 2 local zones. Of course you'd have to re-run this if you move back again. Perhaps something like this: http://trog.qgl.org/ics-timezone-fixer/
 
Old 01-28-2013, 03:52 AM   #3
JWilliamCupp
Member
 
Registered: Jul 2005
Location: Indiana, U.S.A.
Distribution: Fedora
Posts: 57

Original Poster
Rep: Reputation: 15
Calendar Events in Local Time

I may have come up with a work-around solution.

First step, you create the calendar entries which either take the current time zone setting of the desktop, the default time zone set in Evolution, or a time zone selected when creating the entries.

Next, you export the required entries to an *.ics file. In Evolution, select the calendar in question, right click and choose "Save As...". This can be facilitated if you put the entries you want to stay on local time in a separate calender, but it doesn't have to be that way.

Then you edit the *.ics file with an editor such as gedit. For those entries which should not change their local time entries when a different time zone in is use, modify the DTSTART (date time start) and DTEND (date time end) fields so as to remove the time zone information.

For example, suppose you have the following entry for an event:
DTSTART;TZID=/freeassociation.sourceforge.net/Tzfile/Pacific/Port_Moresby:
20110301T070000
DTEND;TZID=/freeassociation.sourceforge.net/Tzfile/Pacific/Port_Moresby:
20110301T070000

change it to read as follows:
DTSTART:20110301T070000
DTEND:20110301T070000

Notice carefully the semicolon comes immediately after the field label, but after the TZID field there is a colon then a space before the date and time information. When edited, the colon goes immediately after the field label and there is no space after the colon before the date and time information.

Finally, you re-import the *.ics file into Evolution, using File > Import ... and walk through the Evolution Import Assistant, selecting a single file and browsing to the modified file you have edited. Upon importing, since the events have a serial number the stored events already in the calendar are updated. Time zone information is removed (the Time Zone field is empty). Now, since the calendar has a time to start and a time to end the event, but no time zone information to apply offsets from UTC, it simply displays the event in local time.

I'm still testing this out but it seems to work so far.

If anyone knows any easier or better way to do this, I would love to hear it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run script in EST time zone but server is in GMT zone jeesun Linux - Networking 1 04-04-2010 01:37 PM
Evolution calendar reminder hunnemad Linux - Software 0 04-24-2008 07:09 AM
Sharing Evolution Calendar SteveT Linux - Software 1 08-18-2006 07:57 PM
evolution calendar slowdown philosophe Linux - Software 3 04-02-2005 05:17 PM
evolution printing calendar changes time divisions exodist Linux - Software 0 09-08-2004 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration