lint: fix php

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/672/head
Varun Patil 2023-05-27 21:23:54 -07:00
parent 0aba7c4ac0
commit 1ec29d83eb
1 changed files with 2 additions and 1 deletions

View File

@ -206,10 +206,11 @@ class Exif
// Set timezone to system timezone
$tz = getenv('TZ') ?: date_default_timezone_get();
try {
$dt->setTimezone(new \DateTimeZone($tz));
} catch (\Exception $e) {
throw new \Error("FATAL: system timezone is invalid (TZ): $tz");
throw new \Error("FATAL: system timezone is invalid (TZ): {$tz}");
}
return self::forgetTimezone($dt);