September 2, 20169 yr Found in unRAID 6.1.9 (not sure about the 6.2 series) Using the custom timezone file will cause portions of the Web UI to fail, since php is unable to set a proper timezone cf root@MediaStore:/usr/local/emhttp/plugins/dynamix# cat include/local_prepend.php <?PHP /* Copyright 2015, Lime Technology * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. */ ?> <? /* This file provides basic local setup for php cli and is * named in /etc/php/php.ini like this: * auto_prepend_file="/usr/local/emhttp/webGui/include/local_prepend.php" */ setlocale(LC_ALL,'en_US.UTF-8'); date_default_timezone_set(substr(readlink('/etc/localtime-copied-from'),20)); ?> root@MediaStore:/usr/local/emhttp/plugins/dynamix# ls /etc/localtime-copied-from /etc/localtime-copied-from@ root@MediaStore:/usr/local/emhttp/plugins/dynamix# ls /etc/localtime-copied-from -l lrwxrwxrwx 1 root root 21 Sep 2 12:19 /etc/localtime-copied-from -> /boot/config/timezone* An error is going to be in any of the date time displayed in the ui: Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/local/emhttp/plugins/dynamix/include/Helpers.php on line 43 Friday, 2016-09-02, 04:29 AM After picking a provided timezone: (UTC) root@MediaStore:/usr/local/emhttp/plugins/dynamix# ls /etc/localtime-copied-from -l lrwxrwxrwx 1 root root 23 Sep 2 04:24 /etc/localtime-copied-from -> /usr/share/zoneinfo/UTC
September 2, 20169 yr Right The name isn't extracted correctly when the link refers to the timezone file on the flash device. Furthermore, PHP doesn't allow arbitrary names for time zones, there is a predefined list of valid names. So even with a correct extraction it isn't going to work. My proposal would be to drop this "custom" timezone feature altogether. The latest RC of unRAID follows the time zones as used per July 2016 and the selection list should be complete. *If* there is a missing zone it is far easier to add this to the standard list. The implementation of "custom" timezone hasn't changed since 6.0 was introduced, your report is the first to notice its error, I guess that tells something about the usage of this setting! Below a list of non-implemented time zones. Any unRAID user living there? UTC-12:00 Baker island, Howland island UTC-09:30 Marquesas islands UTC+10:30 Lord Howe island UTC+12:45 Chatnam islands UTC+14:00 Line islands
September 2, 20169 yr Author I guess the OC in me got fed up with using Singapore for my timezone when Manila (Philippines) exists in the original packages
September 2, 20169 yr I guess the OC in me got fed up with using Singapore for my timezone when Manila (Philippines) exists in the original packages No worries, Manila is one of the choices in the new verison (but don't expect other local cities.... e.g. Baguio City)
September 2, 20169 yr Author Right The name isn't extracted correctly when the link refers to the timezone file on the flash device. Furthermore, PHP doesn't allow arbitrary names for time zones, there is a predefined list of valid names. So even with a correct extraction it isn't going to work. My proposal would be to drop this "custom" timezone feature altogether. The latest RC of unRAID follows the time zones as used per July 2016 and the selection list should be complete. *If* there is a missing zone it is far easier to add this to the standard list. The implementation of "custom" timezone hasn't changed since 6.0 was introduced, your report is the first to notice its error, I guess that tells something about the usage of this setting! Below a list of non-implemented time zones. Any unRAID user living there? UTC-12:00 Baker island, Howland island UTC-09:30 Marquesas islands UTC+10:30 Lord Howe island UTC+12:45 Chatnam islands UTC+14:00 Line islands Do they even have internet via mobile or satellite?
September 2, 20169 yr Do they even have internet via mobile or satellite? Not sure about all of them, but Chatham Islands does. See http://www.chathams.co.nz/index.php/community/136-affordable-broadband-debuts-in-the-chatham-islands (fixed typo)
September 7, 20169 yr Change Log for 6.2-rc5 reports "- Enhanced timezone settings and remove "custom" timezone choice". Can anyone confirm this fixes all issues related to this thread?
September 7, 20169 yr Change Log for 6.2-rc5 reports "- Enhanced timezone settings and remove "custom" timezone choice". Can anyone confirm this fixes all issues related to this thread? I can confirm my own changes, if you like
September 7, 20169 yr Change Log for 6.2-rc5 reports "- Enhanced timezone settings and remove "custom" timezone choice". Can anyone confirm this fixes all issues related to this thread? I can confirm my own changes, if you like While that's good enough for me, it would be nice to hear if ken-ji is happy, wherever he is.
September 8, 20169 yr Author Sorry guys, I don't have any spare resources at the moment to be on the Beta/RC versions so I am unable to provide inputs. But bonienl explained it enough for me to be satisfied before RC5.
September 17, 20169 yr Author OK. with 6.2 released. I upgraded and the changes are done as mentioned.
Archived
This topic is now archived and is closed to further replies.