PDA

View Full Version : Wrong dates in the photo gallery

Link to this page  Printable page

Posted by - wirewolf
Post date - 12-21-2008, 09:06 PM
This comes under the heading, "What the blank?"

Seems the date in the photo database tables are coming up as Friday Dec. 13th, 1931?

I don't think it's the server, because the dates are correct in the forum posts and threads. I checked the database and sure enough, it had a negative UNIX timestamp number for the last thirty or so photos.

Only thing I can think off that there may be a syntax conflict in the old gallery php scripts and the new version of php. I'll have to check. Meanwhile, don't be shocked after you upload or make a comment in the photo gallery and the wrong date is displayed.

Ugh! :userfriendly:

John

Posted by - wirewolf
Post date - 12-21-2008, 10:05 PM
Update. Problem seems to be solved. The function for what is called localtime () is handled differently in the new php version. Made a minor syntax change in a few of the gallery scripts and looks like it fixed the problem. Until the next one crops up! :(
John