Change date format Change date format
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Change date format

Started by biellebrunner, February 12, 2017, 01:08:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

biellebrunner

Hi.
Currently, the date format reads something like "11 Feb, 2017". I'd like for it to be just "11 Feb 17".
I found this on functions.inc.php, but I'm not 100% if this is what I should be editing (nor exactly what should I change ctime for?):

        if (in_array('ctime', $must_have)) {

            $caption .= '<span class="thumb_caption thumb_caption_ctime">' . localised_date($row['ctime'], $lang_date['lastup']) . '</span>';

        }


Could anyone shed some light, please?
Thank you.

ron4mac

Date formats are specified in the language file(s).  Look in your language file for $lang_date['lastup'].