PDA

View Full Version : I'm looking for a neat calendar trick


cica
03-24-2006, 06:04 PM
Hi Everyone-

I just took the plunge today and ported a website to soho. I'm trying to get the calendar to do something that most calendars won't do.

The way I see it, if an event is occuring from 1:00pm-5:00pm, then the calendar will display the title and a notation of "1:00pm - 5:00pm". However, if the event passes midnight, the event manager still allows me to enter for example 9:00pm - 12:30am, but will only display "9:00pm". I know that I can simply set the end time or leave it as "N/A", and that 12:30am is technically the next day, but I'm not looking for an alarm clock here :) In reality, I'm just trying to help my girlfriend enter her band gigs, and would like to keep it as simple as possible. I'd prefer to let the program display it rather than try to html itas part of the title.

So, is there any way to force soho to display the time whether or not it is politically correct?

Thanks in advance,
-Tom

DrewMathers
04-10-2006, 05:00 PM
Tom,

You can set a calendar event end time after midnight, but you can't use any time between midnight and 12:45 AM. 1:00 AM or after is fine.

I believe this is because of the way the Soho calendar handles date editing. When you first enter and event, the time drop down boxes run from 1:00 AM to 1:00 AM, but when you edit an event, the drop down boxes run from midnight to midnight.

Hope this helps,

Drew Mathers

cica
04-10-2006, 07:37 PM
Tom,

You can set a calendar event end time after midnight, but you can't use any time between midnight and 12:45 AM. 1:00 AM or after is fine.

I believe this is because of the way the Soho calendar handles date editing. When you first enter and event, the time drop down boxes run from 1:00 AM to 1:00 AM, but when you edit an event, the drop down boxes run from midnight to midnight.

Hope this helps,

Drew Mathers

Thanks, Drew. Actually, I ended up rewriting the php script to allow midnight through 12:45am. My code checks to see if the start and end times are the same. If so, it won't print the times, otherwise it prints both. I submitted my changes to soho support and they are considering incorporating it into the next release.

Thanks,
-Tom