If I create an event it displays correctly on the calendar and in the upcoming block. But if edit that event and change something (not the time) and hit save the Event Detail Page is displayed but the time is now off by 5 hours. If I hit edit again the form opens with the time in the drop down fields 5 hours off. I then have to select a time 5 hours before the actual time to get it to display on the detail page with the right time.

I am in Eastern Timezone (GMT -5)

I have messed around with all the timezone settings I can find and nothing changes it.

Please help.

Comments

gerhard killesreiter’s picture

can you provide information about your server settings, the php version you use, and the exact event.module settings?

mcannell’s picture

I'll try:

Under Administer::Events::Event overview

Upcoming event block limit: 6
Default overview: Month
Table view default period: 30
Taxonomy filter controls: Never show taxonomy filter control
Content type filter controls: Never show content type filter control

Under Administer::Events::Timezone handling
Event time zone input: Use the sitewide time zone
Event time zone display: Use the sitewide time zone
Time notation preference: 12h

(If this is not what you mean by event.module settings, please specify where I get the info you need)

I'm using
linux
Apache 2.2.14
Mysql 5.1.43
php 5.2.11

gerhard killesreiter’s picture

What is the timezone setting at admin/settings/date-time ?

Can you execute the following SQL query and paste the results?

Select * from variable where name like 'event_%';

Select timezone_id, timezone from users where uid = X;

(replace X with your user ID)

mcannell’s picture

Default Time Zone: America/New_York
User-configurable time zones: Enabled (Disabled doesn't change anything)
First day of week: Sunday

Results of SQL query
timezone_id: 0
timezone: NULL

mcannell’s picture

any help on this?

alistair.boudreaux’s picture

I am running into the same issue. Has there been a fix?

arcaic’s picture

I am also getting this issue? 5 hours added to the times I enter. Time zone is UK/London.

I get the issue when displaying event start dates in a custom view. I get it if I use standard or custom date formats.

The event times are displayed correctly in the calendar though.

Do you need any more information?

Andy

MafiaMoe’s picture

This is a semi update: I have noticed this issue when using this and other modules as well. The temporary fix for other modules is to actually remove the setting for the server time from Drupal completely. This has potentially severe side effects of course, which in my case actually damages the event module functionality. Events show in upcoming events but do not work when viewing or editing the date. It shows "Start: 00/00/" on the node page and "January - 00 - (blank) (blank) : (blank) am" when editing. I only did this as there was simply no other way around it with the other modules.

If you can, you might try changing the time zone of the server until it saves and displays correctly. This may also be a bigger issue with another module.

This all seems to connected to not be centered around the same set of bugs, or else I would have made a new issue.

Here is an example: http://www.asmeucm.org/node/75

wildlife’s picture

Any solution to this yet? I've been having the same thing for months. It is a royal pain to have to remember to set the time 5 hours before the event EVERY time I have to go in to edit an event in any way. I now am working on a project where we will have dozens of partners creating events, and this will be entirely unacceptable to the people I'm doing the site for, so I have to have this matter solved before I can present the events/calendar functionality I'm building. So any further input on this would be very much appreciated.

wildlife’s picture

Found the solution!

Content Management
| Content Types
| Edit Event (or whatever content type you have your date field in)
| Manage Fields
| Date

In the page that opens to edit your Date field configuration, look for a dropdown that is labeled

Time zone handling:

Set that to No time zone conversion.

That works for my needs. It may throw off things if you want time zone offsets for users in other time zones, but that's not needed with the site I'm working on.

Hope this helps you and others experiencing this problem.

jenifertucker’s picture

Thanks for the tip wildlife - did the trick after a long time trying to fathom this out.

japerry’s picture

Status: Active » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.