Add configurable date format

This commit is contained in:
Ruan 2015-07-03 16:53:20 +02:00
parent b6459b3a38
commit 20553bf6c7
2 changed files with 8 additions and 1 deletions

View File

@ -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);
}
/**

View File

@ -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';
/*****************************************************************************/