Update config.php

This commit is contained in:
Namhyeon Go 2018-04-11 02:49:52 +09:00 committed by GitHub
parent b156949ac8
commit 5b2a537f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,4 +47,11 @@ if(!function_exists("get_config_value")) {
}
}
if(!function_exists("get_current_datetime")) {
function get_current_datetime() {
$config = get_config();
return get_value_in_array("timeformat", $config, "Y-m-d H:i:s");
}
}
$config = read_config();