Issue Details (XML | Word | Printable)

Key: MDL-10948
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Wen Hao Chuang
Reporter: Olli Salo
Votes: 0
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Calendar's detailed month view shows weekdays incorrectly

Created: 22/Aug/07 07:08 PM   Updated: 10/Jul/08 04:03 AM
Return to search
Component/s: Calendar
Affects Version/s: 1.6.5
Fix Version/s: None

File Attachments: None
Image Attachments:

1. calbug.gif
(36 kB)

2. calendar_error.png
(52 kB)
Environment: Redhat Linux, Postgres 8.2.0, PHP 4.3.9.

Database: PostgreSQL
Participants: Olli Salo, Petr Skoda, Red Morris, Wen Hao Chuang and Yu Zhang
Security Level: None
Affected Branches: MOODLE_16_STABLE


 Description  « Hide
When a teacher looks at calendar dates and weekdays, they're all OK. But when a teacher opens the "Detailed month view" for the same month, the weekdays are shown incorrectly (see the attached pic). In the example pic, August 22nd is marked correctly in the small block view but incorrectly (Moodle claims August 22nd to be Tuesday).

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Olli Salo added a comment - 22/Aug/07 07:13 PM
... incorrectly in the detailed view. Could this be a postgres-related bug?

Olli Salo added a comment - 23/Aug/07 01:33 PM
Some other users have had the similar problem (see: http://moodle.org/mod/forum/discuss.php?d=71054). I was able to fix our moodle setup with the server settings mentioned by Joseph Rézeau in the above mentioned thread but I think it would still be worth checking since a lot of moodle administrators have reported the same bug/feature. Apparently using "server time" (instead of a specified location) affects these two calendar view differently.

Wen Hao Chuang added a comment - 20/Sep/07 07:38 AM
I can't reproduce this with our testing and staging site, and we are using MySQL. Just a quick FYI

Red Morris added a comment - 11/Oct/07 06:39 PM
I have this same issue on Windows/Apache/MySQL system. So not a Postgres issue.

Wen Hao Chuang added a comment - 12/Oct/07 02:32 PM
I was able to reproduce this issue on the most recent version of 1.6.x, but not in 1.8.x. So 1.8 already fixed this issue. I could take a look at the codes and see if I could backport to 1.6 to fix this bug. Also attach a screenshot (it seems to be different from the alignment issue that earlier screenshot shows though). I think this problem also exist in 1.5.x too.

Wen Hao Chuang added a comment - 12/Oct/07 02:36 PM
Hi Yu, before I dig into the code do you happen to know anything about what might have caused this? Thanks!

Yu Zhang added a comment - 12/Oct/07 02:45 PM
Hi Wen, sorry, not really, I don't know so you would have to look...

Petr Skoda added a comment - 02/Nov/07 04:34 PM
I think I fixed that bug, but do not remember when and where