[pLog-svn] Date Format
Oscar Renalias
oscar at renalias.net
Mon Jul 31 21:21:38 GMT 2006
If you use $locale->formatDate($date) in any of the templates and
without any more parameters, it will use the default date format
specified in the locale file.
The default date format is specified at the top of the locale file
and it looks like this in the en_UK locale:
$messages['date_format'] = '%d/%m/%Y %H:%M';
Just change it to suit your needs (you may find a list of all the
parameters that can be used in the code, look at the comments just on
top of the 'formatDate' method in class/locale/locale.class.php)
Most of the screens in the admin interface will use this format
automatically. In the case of templates, however, it is left up to
the designer to specify the most suitable date format.
On 30 Jul 2006, at 11:48, Ma'moon wrote:
> is there any way that we can use to change the format of the dates
> when we list the infos about the posts or anything else, is there
> any file should be altered in order to get a different format of
> the dates or i have to deal with each item's date alone to change
> the format of the date ?!!
>
> -Ma'moon
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
More information about the pLog-svn
mailing list