Date on last additions and last comments Date on last additions and last comments
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Date on last additions and last comments

Started by JohnM-UK, February 23, 2008, 01:23:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JohnM-UK

For some reason my gallery is not displaying the dates correctly on last additions - http://www.oneuk.f2s.com/photos/ and last comments - http://www.oneuk.f2s.com/photos/thumbnails.php?album=lastcom&cat=0 It is just saying the month and year ie. Feb 2008 or .02.08 at 22:33 for comments
I compared it with someone elses gallery to see if it was something common and it appears it is just mine. Here is one I compared it with:
http://www.republichog.org/gallery/
As you can see on this gallery the date is displayed correctly for last additions (Feb 22, 2008) and last comments (07/08/07 at 21:10)

Stramm

Check your server clock or ask your host to do so.

JohnM-UK

Would that be the same for anything on my site? I currently have a phpbb forum on there which displays the correct time for posts...
"Posted: Sat Feb 23, 2008 1:34 pm"

Nibbler

The british english lang file using a date format that is not supported on windows. You can change the date format in the lang file or remove the lang file to use us english instead.

JohnM-UK

Brilliant! Thanks, all working now. If I may just share this solution for other readers...


In 'lang\english_gb.php' overwrite this:

$album_date_fmt =    '%e.%B %Y';
$lastcom_date_fmt =  '%e.%m.%y at %H:%M';
$lastup_date_fmt = '%e %B %Y';
$register_date_fmt = '%e %B %Y';
$lasthit_date_fmt = '%e %B %Y at %H:%M';
$comment_date_fmt =  '%e %B %Y at %H:%M';
$log_date_fmt = '%e %B, %Y at %I:%M %p'; //cpg1.4


With this from:
lang\english.php (line 54)

$album_date_fmt =    '%B %d, %Y';
$lastcom_date_fmt =  '%m/%d/%y at %H:%M';  // switch %m and %d to get the english date format
$lastup_date_fmt = '%B %d, %Y';
$register_date_fmt = '%B %d, %Y';
$lasthit_date_fmt = '%B %d, %Y at %I:%M %p';
$comment_date_fmt =  '%B %d, %Y at %I:%M %p';
$log_date_fmt = '%B %d, %Y at %I:%M %p'; //cpg1.4


Should now correctly display:
Date of last file upload in each album in 'Album List'
Date of file upload in 'Last Additions'
Date and time of comment in 'Last Comments' view (Format: 20/02/08 at 22:33)
Date and time of comment next to comment (Format: [Feb 20, 2008 at 10:33 PM])


Joachim Müller

@Nibbler: should be moved to bugs if such a flaw has made it into english_gb.php, don't you agree?