New: Ajout info timezone dans info systemes
This commit is contained in:
parent
ef814c42ec
commit
ef9ed79f6b
@ -77,6 +77,8 @@ $var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"240\">".$langs->trans("CurrentLeftMenuHandler")."</td><td>".$conf->left_menu."</td></tr>\n";
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"240\">".$langs->trans("CurrentDolibarrLanguage")."</td><td>".$langs->getDefaultLang()."</td></tr>\n";
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"240\">".$langs->trans("CurrentDolibarrTZ")."</td><td>".$_ENV["TZ"]."</td></tr>\n";
|
||||
print '</table>';
|
||||
print '<br>';
|
||||
|
||||
|
||||
@ -102,9 +102,10 @@ if ($_POST["action"] == "set")
|
||||
|
||||
fputs($fp, '<?php');
|
||||
fputs($fp,"\n");
|
||||
|
||||
fputs($fp,"#\n");
|
||||
fputs($fp,"# File generated by Dolibarr installer on ".dolibarr_print_date(time(),'dayhour')."\n");
|
||||
fputs($fp,"# File generated by Dolibarr installer on ".dolibarr_print_date(gmmktime(),'dayhour'));
|
||||
if ($_ENV["TZ"]) fputs($fp," (TZ=".$_ENV["TZ"].")");
|
||||
fputs($fp,"\n");
|
||||
fputs($fp,"#\n");
|
||||
fputs($fp,"# Take a look at conf.php.example file for an example of conf.php file\n");
|
||||
fputs($fp,"# and explanations for all possibles parameters.\n");
|
||||
|
||||
@ -45,6 +45,7 @@ LanguageParameter=Language parameter %s
|
||||
LanguageBrowserParameter=Parameter %s
|
||||
LanguageDolibarrParameter=Language Dolibarr parameter
|
||||
CurrentDolibarrLanguage=Dolibarr current language
|
||||
CurrentDolibarrTZ=Dolibarr current Time Zone
|
||||
OSEnv=OS Environment
|
||||
Box=Box
|
||||
Boxes=Boxes
|
||||
|
||||
@ -38,6 +38,7 @@ LanguageParameter=Param
|
||||
LanguageBrowserParameter=Paramètre linguistique %s du navigateur
|
||||
LanguageDolibarrParameter=Paramètre linguistique de Dolibarr
|
||||
CurrentDolibarrLanguage=Langue courante de Dolibarr
|
||||
CurrentDolibarrTZ=Time Zone Dolibarr courante
|
||||
OSEnv=Environnement du système d'exploitation
|
||||
Box=Boîte
|
||||
Boxes=Boîtes
|
||||
|
||||
@ -46,6 +46,7 @@ LanguageParameter=Variable langue %s
|
||||
LanguageBrowserParameter=Variable %s
|
||||
LanguageDolibarrParameter=Paramètre de langue Dolibarr
|
||||
CurrentDolibarrLanguage=Langue Dolibarr courante
|
||||
CurrentDolibarrTZ=Time Zone Dolibarr courante
|
||||
OSEnv=Environnement OS
|
||||
Box=Boîte
|
||||
Boxes=Boîtes
|
||||
|
||||
@ -508,7 +508,7 @@ function dolibarr_print_date($time,$format='')
|
||||
if ($format == 'dayhourldap') $format='%Y%m%d%H%M%SZ';
|
||||
if ($format == 'dayhourtext') $format=$conf->format_date_hour_text_short;
|
||||
if (! $format) $format='%Y-%m-%d %H:%M:%S';
|
||||
|
||||
|
||||
// Si date non définie, on renvoie ''
|
||||
if (! $time) return '';
|
||||
|
||||
@ -521,6 +521,7 @@ function dolibarr_print_date($time,$format='')
|
||||
$sday = $reg[3];
|
||||
$shour = $reg[4];
|
||||
$smin = $reg[5];
|
||||
|
||||
if ($syear < 1970 && isset($_SERVER["WINDIR"]))
|
||||
{
|
||||
return strftime($format,dolibarr_mktime($shour,$smin,0,$smonth,$sday,$syear));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user