Skip to content
Snippets Groups Projects
Commit 58b822c8 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Add timezone

parent 306fec7f
No related branches found
No related tags found
No related merge requests found
......@@ -61,9 +61,13 @@ print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("LanguageParameter","
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("LanguageParameter","PHP LC_MONETARY")."</td><td>".setlocale(LC_MONETARY,0)."</td></tr>\n";
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("ServerTZ")."</td><td>".$_ENV["TZ"]."</td></tr>\n";
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("PHPTZ")." (date.timezone)</td><td>".ini_get("date.timezone")."</td></tr>\n"; // date.timezone must be in valued defined in http://fr3.php.net/manual/en/timezones.europe.php
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("ServerTZ")." (TZ)</td><td>".$_ENV["TZ"]."</td></tr>\n";
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("PHPServerOffsetWithGreenwich")."</td><td>".(- dolibarr_mktime(0,0,0,1,1,1970))."</td></tr>\n";
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentHour")."</td><td>".dolibarr_print_date(time(),'dayhour')."</td></tr>\n";
print '</table>';
print '<br>';
......
......@@ -72,7 +72,9 @@ LocalisationDolibarrParameters=Localisation parameters
CurrentDolibarrLanguage=Dolibarr current language
DolibarrTZ=Time Zone
ServerTZ=Server Time Zone
PHPTZ=PHP Time Zone
PHPServerOffsetWithGreenwich=Server PHP Offset width Greenwich (secondes)
CurrentHour=Current hour
OSEnv=OS Environment
Box=Box
Boxes=Boxes
......
......@@ -72,7 +72,9 @@ LocalisationDolibarrParameters=Param
CurrentDolibarrLanguage=Langue Dolibarr courante
DolibarrTZ=Time Zone
ServerTZ=Serveur Time Zone
PHPTZ=PHP Time Zone
PHPServerOffsetWithGreenwich=Serveur PHP offset avec Greenwich (secondes)
CurrentHour=Heure courante
OSEnv=Environnement OS
Box=Boîte
Boxes=Boîtes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment