Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DEFECT: WebUI does not properly support the custom timezone option

Featured Replies

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

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

  • Author

I guess the OC in me got fed up with using Singapore for my timezone when Manila (Philippines) exists in the original packages :D

 

I guess the OC in me got fed up with using Singapore for my timezone when Manila (Philippines) exists in the original packages :D

 

No worries, Manila is one of the choices in the new verison (but don't expect other local cities.... e.g. Baguio City)

  • 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?

 

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?

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 :)

 

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.

  • 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.

  • 2 weeks later...
  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.