| Author |
Message |
Goanna
MD user level 1


Joined: Nov 16, 2006
Posts: 11
Location: Ingham, Queensland, Australia
Member
|
 Posted:
May 17, 2008 - 10: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
MD user level 1


Joined: Nov 16, 2006
Posts: 11
Location: Ingham, Queensland, Australia
bannato
|
 Posted:
May 25, 2008 - 11:28 PM |
|
|
Bump, any thoughts anyone?
Cheers
Goanna |
_________________ If you want to know the secret, you have to play the game. |
|
|
 |
Bonzo
MD user level 5


Joined: Sep 15, 2004
Posts: 55
Location: Rome - Italy
bannato
|
 Posted:
June 01, 2008 - 02:07 PM |
|
|
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 |
_________________ Bonzo (aka Matteo Carletti)
www.isartegiovagnoli.com - Istituto Statale d'Arte di Sansepolcro e Anghiari
www.agriturismoilsasso.it || www.agriturismoanghiari.it
www.beccacciaiditalia.com |
|
|
 |
Goanna
MD user level 1


Joined: Nov 16, 2006
Posts: 11
Location: Ingham, Queensland, Australia
bannato
|
 Posted:
June 01, 2008 - 03:42 PM |
|
|
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 |
_________________ If you want to know the secret, you have to play the game. |
|
|
 |
Goanna
MD user level 1


Joined: Nov 16, 2006
Posts: 11
Location: Ingham, Queensland, Australia
bannato
|
 Posted:
June 01, 2008 - 05:04 PM |
|
|
Nope, date changed over at 1400 local time
Goanna |
_________________ If you want to know the secret, you have to play the game. |
|
|
 |
Goanna
MD user level 1


Joined: Nov 16, 2006
Posts: 11
Location: Ingham, Queensland, Australia
bannato
|
 Posted:
June 02, 2008 - 09:42 PM |
|
|
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 |
_________________ If you want to know the secret, you have to play the game. |
|
|
 |
Goanna
MD user level 1


Joined: Nov 16, 2006
Posts: 11
Location: Ingham, Queensland, Australia
bannato
|
 Posted:
June 07, 2008 - 05:37 PM |
|
|
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 |
_________________ If you want to know the secret, you have to play the game. |
|
|
 |
Goanna
MD user level 1


Joined: Nov 16, 2006
Posts: 11
Location: Ingham, Queensland, Australia
bannato
|
 Posted:
June 17, 2008 - 11:39 AM |
|
|
Well, gotta admit defeat, the bloody thing has me beat. 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 |
_________________ If you want to know the secret, you have to play the game. |
|
|
 |
Bonzo
MD user level 5


Joined: Sep 15, 2004
Posts: 55
Location: Rome - Italy
bannato
|
 Posted:
June 20, 2008 - 09:39 PM |
|
| Post subject: [MDCal] error hours and time server |
|
|
 |
|
|
|