mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Move timezone setting to settings.php
This commit is contained in:
parent
f1239c4cd8
commit
3c1d9a98fd
@ -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>");
|
||||||
}
|
}
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
@ -31,8 +31,7 @@
|
|||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php }
|
<?php } ?>
|
||||||
?>
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user