coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: bsvee on January 20, 2007, 06:26:02 PM

Title: Wrong date being displayed
Post by: bsvee on January 20, 2007, 06:26:02 PM
For some time CPG has been displaying the wrong date everywhere. I can create a test comment, the correct date is saved in the cpg_comments.msg_date column but when it's displayed on a page it is back by three weeks.

Below is a screenshot from the config page. This should be displaying Jan 20, 2007 at 10:53 AM. My WordPress install displays dates properly.

Have I mucked something up or is there a configuration that is off? Do I need to ask my ISP to do something? I'm using Coppermine Photo Gallery 1.4.10 (stable).

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.svee.org%2Fdownload%2Fdateissue.jpg&hash=b64f4f70b5c52836857807caef578c457938043a)
Title: Re: Wrong date being displayed
Post by: Nibbler on January 20, 2007, 06:31:59 PM
Well, you have set the offset to minus six hundred hours, which is about 3 weeks. This is to be expected. Set it to your actual timezone offset in hours.
Title: Re: Wrong date being displayed
Post by: bsvee on January 20, 2007, 06:50:45 PM
Uh, yeah, that did it.  ::)

I apparently misinterpreted the following, which I looked up for my time zone, so I chose -600 as a value.

Date&time: Sat, 20 Jan 2007 11:49:36 -0600 (CST)

from http://twiki.org/cgi-bin/xtra/tzdate?tz=America/Chicago (http://twiki.org/cgi-bin/xtra/tzdate?tz=America/Chicago)

Thank you for the correction.