mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Add configurable date format
This commit is contained in:
parent
b6459b3a38
commit
20553bf6c7
@ -30,8 +30,9 @@ function get_banner_name($banner) {
|
||||
}
|
||||
|
||||
function millis_to_date($millis) {
|
||||
global $date_format;
|
||||
date_default_timezone_set("UTC");
|
||||
return date('F j, Y, g:i a', $millis / 1000);
|
||||
return date($date_format, $millis / 1000);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -23,6 +23,12 @@ $limit_per_page = 20;
|
||||
// If you set a table prefix in config.yml, put it here too
|
||||
$table_prefix = "";
|
||||
|
||||
// The date format can be changed here.
|
||||
// https://secure.php.net/manual/en/function.date.php
|
||||
// Example of default:
|
||||
// July 2, 2015, 9:19 pm
|
||||
$date_format = 'F j, Y, g:i a';
|
||||
|
||||
$driver = 'mysql';
|
||||
|
||||
/*****************************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user