URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: uReserve_troubleshooting
Thread Number: 17
[ Go back to previous page ]

Original Message
"2002 cannot be seen on Dec 31, 2001"

Posted by Amir [snapir@utu.fi] on at 06:19 AM
I was surprised to find out that uReserve works fine in displaying and setting reservation from 2001 and 2003, but fails to do so for 2002.

The script worked fine on Dec 28 - setting reservations for 2002 as well, and I was wondering if this is because today it is Dec 31st.

We use the European version of the script.

Amir.


Table of contents

Messages in this discussion
"2002 cannot be seen on Dec 31, 2001"
Posted by Larry Wright [larry@searhc.org] on at 02:07 PM
I am currently experiencing the exact same problem.

"RE: 2002 cannot be seen on Dec 31, 2001"
Posted by Bill Weiner on at 11:54 AM
We looked into the problem and it appears that it is being caused by an inaccurate SECONDS_PER_YEAR constant in the script.

To correct it, please follow the steps below:

STEP 1: Make a backup of your current ureserve.pl script... just in case.

STEP 2: Open the ureserve.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$SECONDS_PER_YEAR = 31622400;

STEP 4: Change that line to:

$SECONDS_PER_YEAR = 31557600;

STEP 5: Save the script (as TEXT if your editor asks)... and try it out!


On a side note, that problem will probably "magically" fix itself around 6:00 pm on Jan 1,2002.... but since the same downtime would occur next year, you should probably go ahead and make the above correction anyway.

We'll also try to release an official fix and list it on the updates page:

http://www.uburst.com/uReserve/updates.html

... within a week.

Thank you for bringing that to our attention.


"2002 cannot be seen on Dec 31, 2001"
Posted by Amir Snapir on at 07:31 AM
Thank you for the fast response. The script works fine again.

Rgds, Amir.