#13344 expiration date no under today

This commit is contained in:
Jonathan 2024-04-10 14:53:43 +02:00
parent 06fb4b419b
commit 346292fb54
1 changed files with 3 additions and 1 deletions

View File

@ -79,8 +79,10 @@ if ($create_token === true || $update_token === true) {
$validity = null;
if (empty($expirationDate) === false && $expirationDate >= date('Y-m-d')) {
$validity = $expirationDate;
if (empty($expirationTime) === false) {
if (empty($expirationTime) === false && $expirationTime > date('H:i:s')) {
$validity .= ' '.$expirationTime;
} else {
$validity .= ' 23:59:59';
}
}