MAXdev

MDPro MAXdev modules - MDCal 4.5 Date question

Goanna - May 17, 2008 - 11:56 AM
Post subject: MDCal 4.5 Date question
Hi,
We recently installed MDCal v4.5 and added the block which displays the calendar, all works ok with the exception that the calendar rolls over to the next day at about 2PM local time (we're in the GMT +10 time zone and this is set in the general admin site settings).

I have had a look to see if I can fix this but can't find anything. Anyone come across this before?

Cheers

Goanna
Goanna - May 26, 2008 - 12:28 AM
Post subject:
Bump, any thoughts anyone?

Cheers

Goanna
Bonzo - June 01, 2008 - 03:07 PM
Post subject:
Hi,
your MDPro version? And version of PHP/MySQL and also the link of your web site?
These are information that are demanded like indicated in the Posting Guidelines of this forum.
More information you supply on your working environment and greater it will be the possibility to find a solution.

Now we come to your problem:
I have MDPro 1.0821 and I installed MDCal 4.5, but I have not found the problem that you say.
The only difference regarding you is that I have GMT +1 time zone.
You have verified the preferences of the module? I think yes, but Just to be sure you go from the control panel on MDCal - > Preferences .
It controls the values of the following fields:
Use formed time 24 hours?....................................YES (default)
Increment of the time for added (minutes 1-60)........... You can try different values
Use style of international date (day, month, year)?.......YES (default)
Date format: use a php strftime format..................... %d-%m-%Y (default)
Cache template output?....................................... YES (default)
Cache Lifetime (in second).................................... 3600 (default)

Then you make also the test of the module. You must click on "Test" link near "Preferences" link.

Bye
Goanna - June 01, 2008 - 04:42 PM
Post subject:
Hi Bonzo,
We are using MDPro ver 1.0821, which we upgraded from 1.076,
PHP is ver 5.2.4,
MySql is ver 4.1.22-standard,
website is http://wte-anga.com
Our host is using Apache ver 1.3.41 (Unix).

We didn't have a tick in the use International date style and we left the date format as %Y-%m-%d. I have now ticked the use international date style and changed the date format to %d-%m-%Y . We'll see if this has any effect, as the date will click over in about an hour and a half if those two changes don't fix it.

Cheers

Goanna
Goanna - June 01, 2008 - 06:04 PM
Post subject:
Nope, date changed over at 1400 local time Sad

Goanna
Goanna - June 02, 2008 - 10:42 PM
Post subject:
A bit of an update, I reckoned that the error was/is somehow related to the system clock when the Calendar is initialised. To test this out I set the clock on my server 6 hours fast and did a fresh install of MDPro 10821 and installed the calendar module and sure enough it rolled over to the next day 6 hours early. I reset the server clock to the correct time, uninstalled and reinstalled the calendar, including deleting manually from the various database tables any reference I could find to MDCal, but it is still 6 hours ahead.

A fresh install of MDPro 10821 with the correct server time and calendar has the time correct.

So my question is when the calendar is initially initialised does it write some values somewhere, that it uses for it's time calculations? If so where?

Cheers

Goanna
Goanna - June 07, 2008 - 06:37 PM
Post subject:
Some more news, I changed the connection details on the clean install to point at the "old database" and sure enough the date rolls over early, then changed the connection details back and the correct date showing so that narrows it down to an entry in one of the database tables somewhere, so now the manual task of checking each and every table in the database Will keep you all informed, this ain't gunna beat me - lol

Cheers

Goanna
Goanna - June 17, 2008 - 12:39 PM
Post subject:
Well, gotta admit defeat, the bloody thing has me beat. Sad To try and ascertain which table was causing the problems I started deleting one by one tables from the old databse, refreshing including clearing out the cache etc and it got to the point where the tables in both the new and the old were the same, yet one rolls over early and the other doesn't.
So I reconnected the clean install to the old database and it rolled over early as I expected, but here's the catch, when I pointed it back at the original new database (which hasn't been touched) it now still rolls over early, whereas previously when I connected back to the new database it worked correctly.
Will have to put up with it rolling over early.

Cheers

Goanna
Bonzo - June 20, 2008 - 10:39 PM
Post subject: [MDCal] error hours and time server
Did I offer congratulations for your steadfastness in an effort to resolve the problem.
Everyone should do as you.

I'm sorry you can't say any more, because the problem does not occur to me and then I tested very little the module MDCal.

Greetings
All times are GMT + 13 Hours
Powered by MDForum 2.0.8 © 2003-2007 based on phpBB © 2001, 2002 phpBB Team
and by MDRebel which uses Theme Graphics by Daz
and by Attachment-Mod 2.4.3