I've got a site that is showing incorrect dates on each of the nodes. The weird thing is, the database entries that hold the dates are correct, and the date displays correctly under "Authoring information" when editing the node. Changing the date there, however, does not effect how it displays on the site. I would post a link, but the correct date can't be seen without access to the database or administrative access to the drupal site.

I tried running cron, and I also upgraded from 5.2 to 5.7 to see if that fixed anything, and it hasn't. I tried disabling extra modules, but that doesn't help either. As far as I am aware, this wasn't a problem in the past. I was notified of it today, so I imagine it's been working normal until recently. The problem has surfaced on multiple drupal installations from the same server, but there is no relation the incorrect dates, and it doesn't effect every node, just a handful of the more recent ones. We also have WordPress installations running on the same server, without issues.

If someone could give me a few suggestions as to where I should be looking for a problem, I would really appreciate it. I'm guessing it's a problem with the server, but if you've got ideas, I'd love to hear them.

Comments

cog.rusty’s picture

Check the date and time settings in admin/settings/date-time and then save the page, in case some format or timezone data has been corrupted.

If you have allowed configurable timezones for the users, chack the same things for a couple of users in their user/{user_id}/edit pages.

Are you using the Event and/or the Date modules?

ismyrnow’s picture

I figured it out. I was using a custom theme, and it had some shady PHP code in it. I should have looked there first, but I figured it was a recent problem. I guess I just never noticed it before.

Thanks for the help.