2011-01-29, 03:37
Thought this might help some people. The ATV2 uses NTP to sync the time, but occasionally the timezone is setup wrong and this results in XBMC displaying the wrong time. The fix is different than for the original ATV, so here are the instructions.
Note: Before doing this you will need to get the correct timezone "path" on your system. you can do this by going to /usr/share/zoneinfo looking at the directories to figure it out. For example, in /usr/share/zoneinfo you will see a bunch of folders like "Europe", "Canada", "US", etc. Pick the one of your area, and then cd to that folder and list its contents. This will list the files associated with each timezone for your area - pick the one that matches you desired zone.
If you want to cheat and are in the US, these are all the values for the United States:
US/Alaska
US/Aleutian
US/Arizona
US/Central
US/East-Indiana
US/Eastern
US/Hawaii
US/Indiana-Starke
US/Michigan
US/Mountain
US/Pacific
US/Samoa
Use Putty or other SSH client to log into ATV2.
So for example, to set the timezone to US Mountain, you would type:
There does not appear to be any need to reboot or do anything else - I think iOS monitors changes to that file and updates accordingly - it did for me at least.
Note: Before doing this you will need to get the correct timezone "path" on your system. you can do this by going to /usr/share/zoneinfo looking at the directories to figure it out. For example, in /usr/share/zoneinfo you will see a bunch of folders like "Europe", "Canada", "US", etc. Pick the one of your area, and then cd to that folder and list its contents. This will list the files associated with each timezone for your area - pick the one that matches you desired zone.
If you want to cheat and are in the US, these are all the values for the United States:
US/Alaska
US/Aleutian
US/Arizona
US/Central
US/East-Indiana
US/Eastern
US/Hawaii
US/Indiana-Starke
US/Michigan
US/Mountain
US/Pacific
US/Samoa
Use Putty or other SSH client to log into ATV2.
Code:
cd /var/db/timezone
rm localtime
ln -s /usr/share/zoneinfo/[Country or Region]/[Zone Name] localtime
So for example, to set the timezone to US Mountain, you would type:
Code:
cd /var/db/timezone
rm localtime
ln -s /usr/share/zoneinfo/US/Mountain localtime
There does not appear to be any need to reboot or do anything else - I think iOS monitors changes to that file and updates accordingly - it did for me at least.