Wrong date being displayed Wrong date being displayed
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Wrong date being displayed

Started by bsvee, January 20, 2007, 06:26:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bsvee

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)

Nibbler

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.

bsvee

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

Thank you for the correction.