<?php12namespace Pterodactyl\Helpers;34use Carbon\CarbonImmutable;56final class Time7{8/**9* Gets the time offset from the provided timezone relative to UTC as a number. This10* is used in the database configuration since we can't always rely on there being support11* for named timezones in MySQL.12*13* Returns the timezone as a string like +08:00 or -05:00 depending on the app timezone.14*/15public static function getMySQLTimezoneOffset(string $timezone): string16{17return CarbonImmutable::now($timezone)->getTimezone()->toOffsetName();18}19}202122