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)Start/End times on different days
Pages: [1]   Go Down
Print
Author Topic: Start/End times on different days  (Read 335 times)
0 Members and 1 Guest are viewing this topic.
collinbd
Guest
« on: May 20, 2005, 02:21:00 PM »

Hi,

I want to customize the calendar to be able to specify a date range with a start time on Day 1 and an end time on Day five. Is it possible?

Example -- resource borrowed beginning on day 1 at 5:00 pm, returned on day 5 at 11:00 AM. Using no overlap, resource is not available from Day 1 (5 pm) to day 5(11 AM)

Thanks

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: May 20, 2005, 03:53:00 PM »

** I want to customize the calendar to be able to specify a date range with a start time on Day 1 and an end time on Day five. Is it possible? **

You can already schedule an event to span a date range without the need for any customization.


** beginning on day 1 at 5:00 pm, returned on day 5 at 11:00 AM **

The calendar's validation routine will not allow a user to enter an end time which is before the start time (regardless if it is on a different date or not). That particular check can however be bypassed by editing the TimeValidations.js file (found in the administration template directory) and change the following line:

if ( tmp_start_time > tmp_end_time ) {

to

if ( 0 ) {

    I have no idea what would happen to the event if a user happened to add one with an earlier end time on the same date.

JFYI

Dan O.

[This message has been edited by DanO (edited May 27, 2005).]

Logged
collinbd
Guest
« Reply #2 on: May 26, 2005, 01:57:00 PM »

Is is possible to create a form that will take a range and mark it as one event on the calendar as follows?


Day 1 (pickup time to midnight)
days 2-4 (all day)
day 5 (12:01 AM to return time)

This way, it avoids the dilemma of reverse start / end times.

the form would be more like

Pickup Day / time 1
Pickup Day / time2

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: May 27, 2005, 04:02:00 PM »

Any new form you create would require new form validation in order to prevent mistakes from being made. That would make the job more complicated (but not impossible) to accomplish.

JMO

Dan O.

[This message has been edited by DanO (edited July 13, 2005).]

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