when i change the time zone to:
Monday, May 17, 2004 - 11:44 - 0700

the date format remains the same:
Monday, May 17, 2004 - 18:44

and when i create new content, the time shows as 18:44 when i'd like it to show as 11:44.
why is this not working, and how can i fix it?
i have tried searching the forums and have not yet come across anything...
any help would be much appreciated.

thank you,
eva

Comments

clancy@culturecat.net’s picture

i've been trying to fix this for a while now, but i don't know what else to do. i can't get the time zone right so that it displays the proper time on comments and posts. i've been having to change the time manually for a good couple of weeks now. i can change the time under configuration and save the new settings, but they don't save, because the time change doesn't go into effect with the test posts i do. any idea what the problem could be? i should point out that i'm using drupal 4.4.

rgetty’s picture

I'm new to Drupal (moving from Mambo) and loving it. This time thing is the last detail before I push it live. Hopefully we'll find a solution.

hjarche’s picture

I'm having the same problem - with v 4.4. I'm off by one hour only, and can't do much to change it. Has this been solved with v 4.5?

Harold

clancy@culturecat.net’s picture

Please, does anyone know how to fix it? It's very frustrating having to manually change the time every time I create a blog post! And I can't change the time for the comments at all.

clancy@culturecat.net’s picture

Many thanks to cel4145. Go to admin --> settings --> scroll down to the bottom. Set your default time zone. Then under "Configurable time zones," select "disabled." (This is in version 4.5, by the way.)

rl728895’s picture

I tried the method is the previous note but it still didn't work for me on my event calendar. What did work was

Go to admin--> settings-->event --->and use these settings

Time notation preference:
24h
12h - choose this one

The time notation system used for entering event start times.
Timezone handling:
Yes
No - choose this one

Now all my times are showing correctly.

hjarche’s picture

I had this problem in v.4.4, as you can see above.
Finally fixed it by changing my user account settings - */user/edit.
Could not do this in the - */admin/system setting.

seaneffel’s picture

I know I was banging my head into my keyboard for some time trying to solve this problem, but I believe I found the answer in the event.theme file. At least in my case, it wasn't the settings on my admin node, it wasn't a user specified date time zone. It seems format for the date and time in the event node layout was not consistent with the site-wide date/time formatting. On the calendar it would be either 24 or 12 hour as you choose, but the node view was always 24 hour. Dogged trial and error gave me this fix.

Search your event.theme for this line:
function theme_event_nodeapi($node)

And you will find this original code:


function theme_event_nodeapi($node) {
  $output = '<div class="event-nodeapi"><div class="'. $node->type. '-start"><label>'. t('Start: ') .'</label>'. $node->start_format .'</div></div>'."\n";
  if ($node->event_start != $node->event_end) {
    $output .= '<div class="event-nodeapi"><div class="'. $node->type. '-end"><label>'. t('End: ') .'</label>'. $node->end_format .'</div></div>'."\n";
  }

Replace that section with the section I hacked up below.


function theme_event_nodeapi($node) {
  $output = '<div class="event-nodeapi"><div class="'. $node->type. '-start"><label>'. t('Start: ') .'</label>'. format_date($node->event_start) .'</div></div>'."\n";
  if ($node->event_start != $node->event_end) {
    $output .= '<div class="event-nodeapi"><div class="'. $node->type. '-end"><label>'. t('End: ') .'</label>'. format_date($node->event_end) .'</div></div>'."\n";
  }

The only difference is that I changed each "$node->start_format" to "format_date($node->event_start)". It seems that it solves the problem.

I'm mostly posting this so that I can find my solution again. I'm turning into quite the reverse engineer, and all that code makes my post look sooo official. Go me!

yersin’s picture

Hi. I had a similar problem (difference of hours). It turns out that Site configuration » date and time had to be set right first. Then, in Content management » Content types » "Reminder (or whatever)" » Additional Display Settings" , (After clicking on configure field_time), I set "time set handling" to "No time zone conversion". That must have fixed the hours; however, I still see that my calendar time is 7 min later that actual time. I suspect it's the server's fault. I still don't know what to do. Any ideas?

- yhh -