Add info to help debug of TZ
This commit is contained in:
parent
fe47469873
commit
337405b5f8
@ -707,8 +707,9 @@ extension=php_zip.dll
|
||||
|
||||
[Date]
|
||||
; Defines the default timezone used by the date functions
|
||||
; date.timezone = UTC => You have local = greenwich.
|
||||
; Comment line to use system OS TZ.
|
||||
; date.timezone = UTC => You have local = greenwich.
|
||||
; date.timzeone = Europe/Paris => To use TZ+1
|
||||
; See http://php.net/date.timezone
|
||||
;date.timezone =
|
||||
|
||||
;date.default_latitude = 31.7667
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
|
||||
require("./pre.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/memory.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/date.lib.php");
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("install");
|
||||
@ -170,7 +171,7 @@ print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("PHPTZ")." (php.ini d
|
||||
if (function_exists('date_default_timezone_get'))
|
||||
{
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"300\">=> ".$langs->trans("CurrentTimeZone")."</td><td>";
|
||||
print "<tr ".$bc[$var]."><td width=\"300\">=> ".$langs->trans("CurrentTimeZone")."</td><td>"; // Timezone server PHP
|
||||
print date_default_timezone_get();
|
||||
print "</td></tr>\n"; // value defined in http://fr3.php.net/manual/en/timezones.europe.php
|
||||
}
|
||||
@ -180,6 +181,10 @@ $var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"300\">=> ".$langs->trans("CurrentHour")."</td><td>".dol_print_date(dol_now('tzserver'),'dayhour')."</td></tr>\n";
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var].'><td width="300">=> dol_print_date(0,"dayhourtext")</td><td>'.dol_print_date(0,"dayhourtext")."</td>";
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var].'><td width="300">=> dol_get_first_day(1970,1,false)</td><td>'.dol_get_first_day(1970,1,false)." (with dol_print_date() or idate() = ".dol_print_date(dol_get_first_day(1970,1,false),'dayhour').")</td>";
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var].'><td width="300">=> dol_get_first_day(1970,1,true)</td><td>'.dol_get_first_day(1970,1,true)." (with dol_print_date() or idate() = ".dol_print_date(dol_get_first_day(1970,1,true),'dayhour').")</td>";
|
||||
# Parent company
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CompanyTZ")."</td><td>".$langs->trans("FeatureNotYetAvailable")."</td></tr>\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user