All my Drupal sites have time zone and calendar problems, and I haven't been able to fix them.

First, the default time zone offset at administer->settings is wrong. The correct time is shown with an offset of 0, but it should be -5 since I'm in New York time zone. How can I fix this?

Second, when an event is set to, say, 10:00 am it appears in the calendar as 5:00 am. How can I fix this?

Third, The calendar opens up to November - it's March now. How do I make the current month the month the calendar opens to?

I'm using Drupal 4.6.
I've tried a suggestion here to adjust all the time stamps in the database and while that corrects the past events, new events are still coming out wrong. The offsets offered at settings are just wrong.

This is really limiting my use of Drupal. There has to be some solution. Calendaring is an important part of any community website.

Thanks

Comments

mwheinz’s picture

I'm guessing your host operating system isn't set up for the right time zone, either.

In other words, your system clock is set to local time instead of UTC, which is why you have to set your time zone to zero in drupal.

kloomis’s picture

I've tried setting the system clock to UTC, but the time zone offset is still incorrect. Was this set once somewhere, and can I reset it?

chromeyellow’s picture

I recognize this problem. There is a possible fix for it at this issue -> node/56189. If you are at all comfortable with a bit of simple code editing, you can replace a few lines of code in event.module with the code in the top part of the page. Just comment out the suspect lines and plug in the new ones.

The suspected source of this problem is that event module applies the offset too many times. If you test this out, report back whether it worked for you!

kloomis’s picture

The patch solved the problem. This should be put into the main download ASAP, otherwise people new to Drupal are going to be disappointed and frustrated with the product.