mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Improve internal timezone handling
This commit is contained in:
parent
e971e7a725
commit
d5ba13d7e1
4 changed files with 112 additions and 11 deletions
|
|
@ -146,10 +146,7 @@ class installView extends install
|
|||
}
|
||||
|
||||
// Get list of time zones.
|
||||
$timezones = DateTimeZone::listIdentifiers();
|
||||
natcasesort($timezones);
|
||||
$timezones = array_combine($timezones, $timezones);
|
||||
Context::set('timezones', $timezones);
|
||||
Context::set('timezones', Rhymix\Framework\DateTime::getTimezoneList());
|
||||
|
||||
// Automatically select a time zone for the user.
|
||||
Context::set('selected_timezone', $this->detectUserTimeZone());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue