HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


iCal import adds two events.

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#104971 (In Topic #20475)
Avatar

Fan in action

I downloaded a ical format file (attached) of US holidays to add to my website.

Import worked like a charm.

When I display the calendar, it looks like this:


However I go to edit it it shows as single days, like this:


Can anyone tell me what's going on here, 'cause I thought that looked pretty straightforward.  
The question is: "Why am I seeing the holiday over two days, rather the single day it should be?"


Attachment
» Download: 31b6faf0ea82f32a259d59d88e793cd2.dat (18 Bytes, 101 downloads so far)


That attachement is bolloxed up, let's try again:
Attachment
» Download: US-Holidays.zip (1.75 Kb, 96 downloads so far)
Back to the top
 
Posted
Rating:
#104983
Avatar

Fan in action

Because the people from whom I got the Calendar have everything as two day events.  
New Years day starts on 20140101 and ends on 20140102 …
MLK's birthday starts on 20140121 and ends on 20140122

Now that caught me completely off guard, I'd expect that someone who sells there services would at least have the right information in their free products.

Frustration!!
Back to the top
 
Posted
Rating:
#105033
Avatar

Community saint

Now that my site and hosting issues seem to be more under control now, I think I can add a few thoughts to this problem. The start and end times in the import file, as you've discovered, contain two separate dates. In the instance of New Year's Day, the import file is saying it starts at midnight at the beginning of January 1st and ends at midnight at the beginning of January 2nd (I'm assuming that ocPortal Calendar assumes a midnight time if a time isn't defined in the import). In your screenshots, the holidays are shifted one day early. I think this is a result of time zone adjustments done in ocPortal. The holiday import file declares a time zone of US Eastern Time and you probably have your web site and/or user account set to US Central Time. This would shift the start times of the New Year's Day holiday to start at 11pm December 31st and end at 11pm January 1st because it is converting the Eastern Time zone of the event to your local time zone one hour earlier. 

This might be corrected if you can get the holidays to import as actual holidays instead of generic events. In your second screenshot, notice the Type column is blank. For holidays, the Type should be set to Holiday. I'm thinking setting the event Type to be Holiday will lock the event to a specific day and won't necessarily define a start and end time that can be adjusted with time zone translations. Without checking the import code I can't say for sure what needs to be done to correct this. I'll see if I can take a look at it this weekend.
Back to the top
 
Posted
Rating:
#105034
Avatar

Fan in action

Not to worry about it Jason; as far as I can tell the file itself was pretty non-standard.
I went back in and made changes to everything and it's right now.  To get it to handle correctly though I had to change a couple of different things for each entry.
They haven't added anything to the calendar so I had to put spmething in it.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: