Update config.php
This commit is contained in:
parent
6a6388fbd9
commit
f36b518758
|
@ -69,6 +69,15 @@ if(!check_function_exists("get_current_datetime")) {
|
|||
}
|
||||
}
|
||||
|
||||
if(!array_key_empty("now", $options)) {
|
||||
try {
|
||||
$dateTimeObject = \DateTime::createFromFormat($timeformat, $options['now']);
|
||||
$timestamp = $dateTimeObject->getTimestamp();
|
||||
} catch(Exception $e) {
|
||||
$timestamp = strtotime($options['now']);
|
||||
}
|
||||
}
|
||||
|
||||
if(!array_key_empty("adjust", $options)) {
|
||||
$timestamp = strtotime($options['adjust'], $timestamp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user