From 6a6388fbd94d8032aef93199a833ca034eec9aaa Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 8 Oct 2019 15:21:30 +0900 Subject: [PATCH] Update config.php --- system/config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/config.php b/system/config.php index 6045e9f..9ba0401 100644 --- a/system/config.php +++ b/system/config.php @@ -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; }