Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)where does default start-end time for "all day" events get set?
Pages: [1]   Go Down
Print
Author Topic: where does default start-end time for "all day" events get set?  (Read 326 times)
0 Members and 1 Guest are viewing this topic.
dtbaker
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: March 02, 2003, 12:03:00 PM »

I would really like to hardcode the start/end times for the all_day events, but am having trouble figuring out where those values get set.

I tried setting as hidden form vars in the add event templates, but it seems to ignore them. I suspect that defaults get plugged in somewhere in clendar_admin.pl, but i cant find where.

also, I am a bit confused that an all day event I schedule for one day appears to have its start=end time set for 17:01 the previous day Huh? looks right int he calendar view, but the time(value) doesnt seem to correspond.

can anyone give some development considerations for working with the day and times?

d

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: March 02, 2003, 02:13:00 PM »

** I tried setting as hidden form vars in the add event templates, but it seems to ignore them. **

I don't know why that would be. You are passing SCHEDULE_start_time_hh, SCHEDULE_start_time_mm, SCHEDULE_start_time_ampm (as "am" or "pm"), SCHEDULE_end_time_hh, SCHEDULE_end_time_mm and SCHEDULE_end_time_ampm (as "am" or "pm")?


** I suspect that defaults get plugged in somewhere in clendar_admin.pl, but i cant find where. **

The schedule is created in the Event.inc file located in the calendarscript/lib directory in the subroutine:
sub scheduleEvent {

** I am a bit confused that an all day event **

An all day event is signified by a value of 1 in the "all_day" schedule database field.

** its start=end time set for 17:01 **

I don't know where that's coming from but without being able to see what you're doing it's impossible to guess at a cause.

Dan O.

------------------

Logged
dtbaker
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: March 02, 2003, 11:41:00 PM »

thanks, finally got it hacked together... was hard to get around the fact that the "all day" single events have the same start-end times, whereas schedule records added as part of a reccuring event had duration.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: March 03, 2003, 07:51:00 PM »

** finally got it hacked together **

Glad to hear it.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: