Text date format is full text

This commit is contained in:
Laurent Destailleur 2008-10-01 20:13:19 +00:00
parent b262ec547f
commit 828d62677a
2 changed files with 9 additions and 4 deletions

View File

@ -457,9 +457,11 @@ class Conf
$this->format_date_short="%d/%m/%Y";
$this->format_hour_short="%H:%M";
$this->format_date_text_short="%d %b %Y";
$this->format_date_text="%d %B %Y";
$this->format_date_hour_short="%d/%m/%Y %H:%M";
$this->format_date_hour_text_short="%d %B %Y %H:%M";
$this->format_date_hour_text_short="%d %b %Y %H:%M";
$this->format_date_hour_text="%d %B %Y %H:%M";
$this->format_date_short_java="dd/MM/yyyy";
// Limites decimales si non definie (peuvent etre egale a 0)

View File

@ -422,9 +422,12 @@ function dolibarr_print_date($time,$format='',$to_gmt=false)
if ($format == 'day') $format=$conf->format_date_short;
if ($format == 'hour') $format=$conf->format_hour_short;
if ($format == 'daytext') $format=$conf->format_date_text_short;
if ($format == 'daytext') $format=$conf->format_date_text;
if ($format == 'daytextshort') $format=$conf->format_date_text_short;
if ($format == 'dayhour') $format=$conf->format_date_hour_short;
if ($format == 'dayhourtext') $format=$conf->format_date_hour_text_short;
if ($format == 'dayhourtext') $format=$conf->format_date_hour_text;
if ($format == 'dayhourtextshort') $format=$conf->format_date_hour_text_short;
if ($format == 'dayhourlog') $format='%Y%m%d%H%M%S';
if ($format == 'dayhourldap') $format='%Y%m%d%H%M%SZ';
if ($format == 'dayhourxcard') $format='%Y%m%dT%H%M%SZ';