Update config.php

This commit is contained in:
Namhyeon Go 2019-10-08 15:21:30 +09:00 committed by GitHub
parent 4ab4573230
commit 6a6388fbd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ if(!check_function_exists("get_config_value")) {
}
if(!check_function_exists("get_current_datetime")) {
function get_current_datetime() {
function get_current_datetime($options=array()) {
$datetime = false;
$config = get_config();
@ -69,6 +69,10 @@ if(!check_function_exists("get_current_datetime")) {
}
}
if(!array_key_empty("adjust", $options)) {
$timestamp = strtotime($options['adjust'], $timestamp);
}
$datetime = date($timeformat, $timestamp);
return $datetime;
}