Currently, the background color of the current day's cell in the calendar is changed to make it stand out. However, the current day is calculated using the server's time instead of the user's time. This will cause the calendar to display the wrong date when the difference between the user's time zone and server's time zone spans across midnight.

Comments

Steve Dondley’s picture

Assigned: Unassigned » Steve Dondley
Kjartan’s picture

Assigned: Steve Dondley » Kjartan

Check admin/system, you can select the date format there. Event module should respect this, if it doesn't it will be fixed for the Drupal 4.3 release I'm working on.

Kjartan’s picture

Wrong issue, this is still fixed in my working copy just needs to be commited. I've noticed Drupal uses date() in format_date instead of gmdate() too, not sure if this affects anything though.

Anonymous’s picture

Yes, Kjartan, it is problem that Drupal uses date() instead of gmdate(), as there is already a timezone shift in the date. I was wondering why the date values printed by drupal are not all right, but had better things to do, so I have not looked into it... Now you pointed out, where is the bug :) Would be nice to fix...

Anonymous’s picture

Automatically closed due to inactivity (marked fixed for 14 days).