Update TimeZoneTrait for translate

This commit is contained in:
Visman 2023-05-01 18:02:38 +07:00
parent 9be842b012
commit 783fb02a2f

View file

@ -25,7 +25,7 @@ trait TimeZoneTrait
$dateTimeZone = new DateTimeZone($zone);
$dateTime = new DateTime('now', $dateTimeZone);
$offset = $dateTime->getOffset();
$list[$offset][$zone] = $zone;
$list[$offset][$zone] = __($zone);
}
\ksort($list, \SORT_NUMERIC);
@ -46,7 +46,7 @@ trait TimeZoneTrait
$options[] = ['(UTC' . $hm . ') ' . $format->format($now)];
}
$options[] = [$zone, $value];
$options[] = [$zone, \trim($value)];
}
}