DATE PROBLEM DATE PROBLEM
 

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

DATE PROBLEM

Started by altenae, December 27, 2005, 08:45:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altenae

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

Nibbler

Look in the language file you are using and adjust the date formats to suit


// 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

ecto

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.

Nibbler

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.

ecto

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."