forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: altenae on December 27, 2005, 08:45:18 pm

Title: DATE PROBLEM
Post by: altenae on December 27, 2005, 08:45:18 pm
Hi all,

I have a quetion/problem:

I try to understand how this program works and  i don't understand one things.When i use the program in french or English mode i have the date format without the day.
I only have Dec 2005 for example without 27.Is it a bug or you had the same??? In American or every others language it works properly.

How can I make this work with the french language.

Stephane
Title: Re: DATE PROBLEM
Post by: Nibbler on December 27, 2005, 08:57:15 pm
Look in the language file you are using and adjust the date formats to suit

Code: [Select]
// The various date formats
// See http://www.php.net/manual/en/function.strftime.php to define the variable below
$album_date_fmt =  '%e %B %Y';
$lastcom_date_fmt =  '%d/%m/%y %H:%M';
$lastup_date_fmt = '%e %B %Y';
$register_date_fmt = '%e %B %Y';
$lasthit_date_fmt = ' %a %e %B %Y %H:%M';
$comment_date_fmt =  '%a %e %B %Y %H:%M';
$log_date_fmt = '%B %d, %Y at %I:%M %p'; //cpg1.4
Title: Re: DATE PROBLEM
Post by: ecto on December 27, 2005, 09:06:36 pm
Since all date strings in both english.php and french.php should show the day of month and neither %d nor %e (if altenae is using the unmodified 1.4.2 language files) is showing, maybe this problem is related to a PHP setting and not the language file?

I came to think of this as my gallery won't show %e, but it does show %d. Unfortunately I haven't looked into the problem yet.
Title: Re: DATE PROBLEM
Post by: Nibbler on December 27, 2005, 09:22:15 pm
According to the manual some specifiers may not work on windows. If you are using windows you can change it to something that is supported. Check the link in the code given above.
Title: Re: DATE PROBLEM
Post by: ecto on December 27, 2005, 10:00:28 pm
And I thought I had read through that strftime page.. I must have missed that note at the end. Thanks Nibbler! Hopefully this can be of some help to altenae.

"This means that e.g. %e, %T, %R and %D (there might be more) and dates prior to Jan 1, 1970 will not work on Windows, some Linux distributions, and a few other operating systems."