Open DavisNT opened 9 years ago
This is required by Mopidy-AlarmClock integration (https://github.com/woutervanwijk/Pi-MusicBox/issues/270).
/usr/share/zoneinfo/
/usr/share/zoneinfo/$TIMEZONE
echo $TIMEZONE > /etc/timezone
rm -f /etc/localtime
cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime
The code snippet is untested.
Purpose
This is required by Mopidy-AlarmClock integration (https://github.com/woutervanwijk/Pi-MusicBox/issues/270).
Proposed solution
In web interface
/usr/share/zoneinfo/
(may be there is better way to get list of timezones from OS)In /opt/musicbox/startup.sh
/usr/share/zoneinfo/$TIMEZONE
is a fileecho $TIMEZONE > /etc/timezone
rm -f /etc/localtime
cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime
The code snippet is untested.