Commit 687e7452 authored by Arnolds's avatar Arnolds
Browse files

Commented out the remaining time calculation logic in `meta.php` to simplify metadata processing.

parent 7731b700
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ $encrypted = $found ? !empty($doc['encrypted']) : false;

// (Optional) remaining time
$remainingText = null;
if ($found && !$deleted && !$expired && isset($doc['expiresAt']) && $doc['expiresAt'] instanceof UTCDateTime) {
/*if ($found && !$deleted && !$expired && isset($doc['expiresAt']) && $doc['expiresAt'] instanceof UTCDateTime) {
    $exp = DateTimeImmutable::createFromMutable($doc['expiresAt']->toDateTime())->setTimezone(new DateTimeZone('UTC'));
    $diff = $now->diff($exp);
    $parts = [];
@@ -118,7 +118,7 @@ if ($found && !$deleted && !$expired && isset($doc['expiresAt']) && $doc['expire
    if ($diff->i) $parts[] = $diff->i . 'm';
    if (!$parts) $parts[] = $diff->s . 's';
    $remainingText = implode(' ', $parts);
}
}*/

?>
<!DOCTYPE html>