So I had an issue with emby doing things at times that I didnt expect. For instance I have it setup to do a server restart at 3am. Because the server thought it was set to UTC time but in actuality wasnt the restart would happen at 9pm my time.
Anyway I found where it was being forced to UTC so I thought I would share in order to help others out.
The code to start emby checks to see if there is a TZ variable set and if it doesnt see one it forces it to UTC. I wasnt sure where to set the variable before the startup script but it was easy to simply remove the TZ setting in the startup script. Here is a one liner that will remove the lines and create a backup of the file.
Anyway I found where it was being forced to UTC so I thought I would share in order to help others out.
The code to start emby checks to see if there is a TZ variable set and if it doesnt see one it forces it to UTC. I wasnt sure where to set the variable before the startup script but it was easy to simply remove the TZ setting in the startup script. Here is a one liner that will remove the lines and create a backup of the file.
Code:
# perl -n -i.`date +%s` -e "print unless /TZ/" /usr/pbi/emby-amd64/etc/rc.d/emby-server #