Forgive me if this has already been reported, but I couldn't find any posts with a similar problem.

Any time I save an Ad the time for activation/deactivation is modified by -4 hours. So if I save it at 4:00pm (16:00), when I go back to edit it, it'll be set to 12:00pm. And if I save it again, it'll keep subtracting 4 hours from it. I suspect the subtracted amount has to do with the timezone, but I could be wrong.

Using 6.x-2.2, though this was also happening on 6.x-2.1.

Comments

robobeau’s picture

Well, I figured out what my problem was. All the "format_date" functions lack the timezone argument, so it assume's the user's timezone (America/NewYork, in my case). If I enter 12:00, it'll save correctly into the DB, but when I re-edit it, the default value goes through "format_date", converts to GMT -4, and spits out 8:00.

Problem is, I don't want/need a timezone conversion, so I modified all the "format_date" functions to have a 0 as the timezone argument.

Can anyone shed some light as to why the conversion is taking place in the first place? Is this intended behavior? And wouldn't it better if timezone conversion was optional?

mèche’s picture

I have the same bug but give 0 as the timezone argument didn't fix it...

lrwebks’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!