-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timezonelist is truncating some timezone names in system_general.php #242
Comments
|
Nice catch. No particular reason I guess. It went through a refactor, but it can go through one more... Will push a small cleanup that will make this easier to fix in one place only. |
Show all valid paths, but not 'UTC' as it doesn't exist literally.
|
The Etc\UTC style time zones are gone, but since the dialog asks for locations I think this is ok? |
|
A bit more on the history. zoneinfo.tgz used to be in /usr/share instead of the proper layout. I refactored that, not having looked up if there was a portable function already available. |
|
Is there a way for me to easily pull this onto my device for testing? |
|
http://lastsummer.de/development-workflow-in-opnsense/ These days I use "core_safe" instead of "core" so that auto-mount doesn't kick in automatically. Don't forget to "make umount" when you are done. |
Show all valid paths, but not 'UTC' as it doesn't exist literally.
|
Confident about these changes; will be in today's 15.7.1 |
|
Any thoughts on this issue's resolution? :) |
|
Hi Franco, I can confirm on my firewall that the TZ selection I was looking for is now there and it is writing to /conf/config.xml. I also added a phpinfo() to the bottom of index.php and it is now showing the proper TZ! This seems to be resolved. |
|
Yay, thanks for confirming.
|
$timezonelist = array_map(function ($path) { return str_replace('/usr/share/zoneinfo/', '', $path); },glob('/usr/share/zoneinfo/*/*'));This truncates several values and allows for erroneous selections in the drop down. Is there a reason to use this instead of the built-in PHP function:
DateTimeZone::listIdentifiers()The list:
The text was updated successfully, but these errors were encountered: