I have a similar problem with the calendar being off by an hour when not logged in.
E.g. I've set the time as 7 am but site shows 6 am when not logged in.
Something strange going on here
PS - have you set times or left everything at the default of 0000?
Jeff
I have some irritated users for the time being...
Jeff
The program and support are good... it is important to remember that most people are volunteers and do this (programming, etc...) in the spare time.
It can be frustrating at times not to have an instant fix... but keep in mind the software cost you nothing!
I have just submitted a bug report about the calendar. We'll see what happens.
J
Thanks a bunch...
Actually, our interest in Moodle has very little to do with price... and almost everything to do with ease of use.
Let's pray to the programming gods that a fix comes soon!
Have a great weekend.
drs
Re: Entire Calendar off by a day when not logged in.
Re: Entire Calendar off by a day when not logged in.
On the support matter, this would be fixed on the spot if only I were at home. I 'm out for the weekend though. Bad timing.
Re: Entire Calendar off by a day when not logged in.
And what have you chosen as the timezone in your profile settings?
I have a similar problem
http://moodle.org/mod/forum/discuss.php?d=29482
My settings are:
admin - config - variables - timezones - america/toronto
admin - config - calendar - timezones - america/toronto
Any ideas?
Jeff
Re: Entire Calendar off by a day when not logged in.
It seems when a user is NOT logged in is when the problem occurs.
E.g. Time was set for 8:20 am but are being displayed as 7:19 am.
Also noticed that the problem (hour early), isn't a problem for events after the daylight savings switch (Dec & Jan), but the minute early is still there.
Jeff
Right on. I set a couple of events to 01:05 instead of the default 00:00 and then they show up correctly.
In the meantime, can anyone help me with a query to run on my db?? Something to the effect of
update mdl_events set starttime=0105 where starttime=0000
Obviously I am not too familiar with the field names/data types for the events table...
Quick and dirty using moodle's get_records and update_record
$events = get_records("event", "timestart", "0000");
if ($events){
foreach ($events as $anevent){
$anevent->timestart = 0105;
$timefix = update_record('event', $anevent);
if ($timefix){
//report success
} else {
//report failure
}
}
}
Jeff
Re: Entire Calendar off by a day when not logged in.
Hi M
I have forced everyone to use America/Chicago. I flipped it to test, and the result was the same.
BTW, do you sell "per-incident" support tickets on Moodle.com?
Re: Entire Calendar off by a day when not logged in.
Regrettably, I don't have time to personally help everybody for free like I used to. I don't even have time to accept all the paid support people ask me for. I'm sure all of you would prefer me to focus on leading Moodle development instead, and I'm currently very busy trying to get a cash flow happening that will allow me to do this more and more.
Thankfully the community has stepped up to the support challenge rather well - thanks to everyone who helps around here, especially these people!
Special thanks to PJ for fixing this bug!
FIXED: Entire Calendar off by a day when not logged in.
cvs diff -r 1.607 -r 1.608 lib/moodlelib.php
to see what changes were involved. I am not providing patching instructions because this is easy to mess up unless you are comfortable with PHP.
Re: FIXED: Entire Calendar off by a day when not logged in.
Tnx for your hard work.
I just downloaded and uploaded the latest Moodle 1.5.2 + (2005060222) and nothing happened... same problem. Usually after an update the database gets updated... nothing...
I don't see mention in the http://download.moodle.org/stable15/CHANGES file...
Maybe the file isn't available yet? It says Last build: 8 hours 35 mins ago.
Re: FIXED: Entire Calendar off by a day when not logged in.
You wouldn't see mention of this in the CHANGES file anyway, because AFAIK it is updated only before releases.
To make sure that you have the fix, open lib/moodlelib.php with an editor and check the first line. It should say version 1.608 if you are using 1.6, or version 1.565.2.31 if you are using 1.5.x.
Re: FIXED: Entire Calendar off by a day when not logged in.
I too did the upgrade but haven't seen any changes. The problem still exists in my particular instance of Moodle. I just overwrote all scripts. Perhaps I need to clean out all of the old scripts and do a complete upgrade?
Thanks for everything!
Re: FIXED: Entire Calendar off by a day when not logged in.
Re: FIXED: Entire Calendar off by a day when not logged in.
My version is v 1.565.2.30 2005/08/26
I'll try getting it later from moodle.org... as I have not figured out this CVS stuff yet
Jeff
Re: FIXED: Entire Calendar off by a day when not logged in.
Thanks