Move timezone setting to settings.php

This commit is contained in:
Ruan 2015-07-08 10:11:14 +02:00
parent f1239c4cd8
commit 3c1d9a98fd
4 changed files with 4 additions and 9 deletions

View File

@ -55,7 +55,6 @@ function get_banner_name($row) {
function millis_to_date($millis) { function millis_to_date($millis) {
global $date_format; global $date_format;
date_default_timezone_set("UTC");
return date($date_format, $millis / 1000); return date($date_format, $millis / 1000);
} }
@ -90,9 +89,7 @@ function print_page_header($title) {
function print_table_headers($headers) { function print_table_headers($headers) {
echo("<thead><tr>"); echo("<thead><tr>");
foreach ($headers as $header) { foreach ($headers as $header) {
echo('<th><div style="text-align: center;">'); echo '<th><div style="text-align: center;">', $header, '</div></th>';
echo($header);
echo('</div></th>');
} }
echo("<tbody>"); echo("<tbody>");
} }

View File

@ -27,6 +27,7 @@ $table_prefix = "";
// Example of default: // Example of default:
// July 2, 2015, 9:19 pm // July 2, 2015, 9:19 pm
$date_format = 'F j, Y, g:i a'; $date_format = 'F j, Y, g:i a';
date_default_timezone_set("UTC");
$driver = 'mysql'; $driver = 'mysql';

View File

@ -31,8 +31,7 @@
?> ?>
</td> </td>
</tr> </tr>
<?php } <?php } ?>
?>
</table> </table>
</div> </div>
</div> </div>

View File

@ -32,9 +32,7 @@
<?php echo $row['warned'] ? "Yes" : "No"; ?> <?php echo $row['warned'] ? "Yes" : "No"; ?>
</td> </td>
</tr> </tr>
<?php } <?php } ?>
?>
</tbody>
</table> </table>
</div> </div>
</div> </div>