| | 251 | |
| | 252 | //timezone check |
| | 253 | |
| | 254 | $html .= "<li class='admin_element_item_container'>\n"; |
| | 255 | $html .= "<div class='admin_element_label'>" . _("Timezone check: The following must be in the same timezone") . ":</div>\n"; |
| | 256 | $html .= "<div class='admin_element_data'>\n"; |
| | 257 | $html .= "<p>"; |
| | 258 | $db->execSqlUniqueRes("SHOW timezone", $row, false); |
| | 259 | $html .= " ".sprintf(_("Timezone from postgresql: %s"), $row['TimeZone'])."</p>"; // Version < 5.0.0 |
| | 260 | $date_default_timezone_get = 'date_default_timezone_get'; |
| | 261 | is_callable($date_default_timezone_get)?$phpTimezone = date_default_timezone_get():$phpTimezone = "Requires PHP 5.1 to tell"; |
| | 262 | $html .= " ".sprintf(_("Timezone from PHP: %s"), $phpTimezone)."</p>"; // Version < 5.0.0 |
| | 263 | |
| | 264 | $html .= "</div>\n"; |
| | 265 | $html .= "</li>\n"; |
| | 266 | |
| | 267 | |
| | 268 | |