Update config.php
This commit is contained in:
parent
4ab4573230
commit
6a6388fbd9
|
@ -56,7 +56,7 @@ if(!check_function_exists("get_config_value")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!check_function_exists("get_current_datetime")) {
|
if(!check_function_exists("get_current_datetime")) {
|
||||||
function get_current_datetime() {
|
function get_current_datetime($options=array()) {
|
||||||
$datetime = false;
|
$datetime = false;
|
||||||
|
|
||||||
$config = get_config();
|
$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);
|
$datetime = date($timeformat, $timestamp);
|
||||||
return $datetime;
|
return $datetime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user