Kodi Community Forum
[Apple TV] Request ability to set Time-Zone from XBMC - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Kodi General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Mac OS X support (/forumdisplay.php?fid=56)
+---- Thread: [Apple TV] Request ability to set Time-Zone from XBMC (/showthread.php?tid=38630)

Pages: 1 2 3


this is the command I used to fix it. - imickey503 - 2011-04-07 05:50

This is what I used to make the change.
Code:
sudo /bin/ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime

And had succsess after that.

I did not understand how to do it at all at first so this is what I did.

After reading that I might have to use the SUDO command, I added it to the command above. And BLAM!

I still don't know what the -sf part means.



Code:
login as: frontrow
frontrow@192.168.15.2's password:
Last login: Wed Apr  6 20:16:26 2011
-bash-2.05b$ time
-bash: syntax error near unexpected token `newline'
-bash-2.05b$ date
Wed Apr  6 20:46:25 PDT 2011
-bash-2.05b$ login as: frontrow
Password:

before my time on the xbmc apple tv was 2:36AM and my local time was 7:36PM

Code:
login as: frontrow
frontrow@192.168.15.2's password:
Last login: Thu Apr 7 03:01:17 2011
-bash-2.05b$ date
Thu Apr 7 03:03:01 UTC 2011
-bash-2.05b$ ls -l /etc/localtime"
>
> ls -l /etc/localtime"
ls: /etc/localtime
ls -l /etc/localtime: No such file or directory
-bash-2.05b$ ls -l /etc/localtime
ls: /etc/localtime: No such file or directory
-bash-2.05b$ ls -l /etc/localtime
ls: /etc/localtime: No such file or directory
-bash-2.05b$ ln -s /usr/share/zoneinfo/Europe/Moscow localtime
-bash-2.05b$ ls
Applications Music Updates localtime
Library Music Playlists Video Playlists ping
Movies Pictures ^A
-bash-2.05b$ ls /usr/share/zoneinfo
+VERSION EET Greenwich Mexico UCT
Africa EST HST Mideast US
America EST5EDT Hongkong NZ UTC
Antarctica Egypt Iceland NZ-CHAT Universal
Arctic Eire Indian Navajo W-SU
Asia Etc Iran PRC WET
Atlantic Europe Israel PST8PDT Zulu
Australia Factory Jamaica Pacific iso3166.tab
Brazil GB Japan Poland localtime
CET GB-Eire Kwajalein Portugal posixrules
CST6CDT GMT Libya ROC zone.tab
Canada GMT+0 MET ROK
Chile GMT-0 MST Singapore
Cuba GMT0 MST7MDT Turkey
-bash-2.05b$ ln -s /usr/share/zoneinfo
-bash-2.05b$ ls
Applications Music Updates localtime
Library Music Playlists Video Playlists ping
Movies Pictures ^A zoneinfo
-bash-2.05b$ /bin/ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
ln: /etc/localtime: Permission denied
-bash-2.05b$
-bash-2.05b$ sudo /bin/ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
Password:
-bash-2.05b$ time
-bash: syntax error near unexpected token `newline'
-bash-2.05b$ date
Wed Apr 6 20:14:35 PDT 2011
-bash-2.05b$ reboot
reboot: Operation not permitted
-bash-2.05b$ sudo shutdown -r now
Shutdown NOW!
shutdown: [pid 184]
-bash-2.05b$ sh: line 1: /usr/bin/wall: No such file or directory
System shutdown time has arrived
/System/Library/StartupItems/RemoteDesktopAgent/RemoteDesktopAgent: line 17: /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart: No such file or directory
/System/Library/StartupItems/AutoBind/AutoBind: line 1: dirname: command not found
Stopping Apache web server
/System/Library/StartupItems/AutoBind/AutoBind: line 1: basename: command not found
Stopping Network Information Service
/System/Library/StartupItems/Apache/Apache: line 33: apachectl: command not found
Stopping network time synchronization


I did this to try to fix error 11 shutdowns in xbmc for apple tv. after trying to upgrade the software to the bleeding edge and still having the issue of errors on dvd playback with XBMC shutting down with error 11 while streaming them from windows xp pro samba share. I hope that the time fix has resloved the crashing issue.

I almost was thinking about atvflash, Then changed my mind quick. XBMC is just that good.


No Startup Items Folder - Continued Time Problems - DsfC - 2011-04-14 05:22

Hi all,
I'm stuck. I've been working with cyberduck and with terminal to try to sort out this issue, but can't seem to make progress.

localtime points to the correct file (canada/eastern)
system time is 3 hours early

I installed nitotv using pwnage and then installed xbmc.

Code:
Apple-TV:/etc root# ls -l /etc/localtimelrwxr-xr-x 1 root wheel 34 Apr 13 20:02 /etc/localtime -> /usr/share/zoneinfo/canada/Eastern
Apple-TV:/etc root# date
Wed Apr 13 20:06:05 PDT 2011

Apple-TV:/etc root# ps -ax | grep ntp
   13 ??         0:00.07 /usr/sbin/ntpd -n -g -c /private/etc/ntp-restrict.conf -f /private/var/mobile/Library/Preferences/ntp.drift
  134 ttys000    0:00.01 grep ntp

I don't seem to have a startup items folder (verified by looking in cyberduck)

Code:
Apple-TV:~ root# /System/Library/StartupItems/NetworkTime/NetworkTime restart
-sh: /System/Library/StartupItems/NetworkTime/NetworkTime: No such file or directory
Apple-TV:~ root#

I don't know what else is needed here to help sort this out. First time posting in a forum. Hope someone can help.

I wonder if the 'updatebgone' program, or one of the others has removed some features of the aTV, like updating, which is good, and time setting, which is bad.

Furthermore, my login seems to be user: root pass: alpine, which is different from most sources I find, I wonder if I chose a less ideal jailbreaking method. Is there a difference? XBMC and all other programs seem to work well.


- imickey503 - 2011-04-14 07:38

I thought I saw a program apart of the Nito TV package that sets the time on your apple TV.

I am a Copy and Paste Unix Commando, but I did not see a restart command in their.

Did you try a sudo restart?

And turning of the time server and restarting it again?


- DsfC - 2011-04-14 15:41

Quote:I thought I saw a program apart of the Nito TV package that sets the time on your apple TV.

If so, I can't seem to find it.

Quote: but I did not see a restart command in their.
Did you try a sudo restart?

Typing 'reboot' restarts the system, I have also used the restart aTV command within nitoTV, as well as tried unplugging the system. When I plug it back in it says 'searching for network time' for a few seconds before loading. I would think that is restarting the time server.

My system responds to most commands I have seen on this forum, but does not seem to require that I type 'sudo' first. It says invalid command when I do. I don't know what sudo is supposed to be.

Quote:And turning off the time server and restarting it again?

Other than the various forms of reboot I've tried, I do not know how to restart the time server. I don't seem to have a 'startupitems' folder as mentioned in an earlier post and thus can not run this command:
"/System/Library/StartupItems/NetworkTime/NetworkTime restart"

Could my startup items be somewhere else? Is there an easy way to search through my appleTV without opening every folder?

Thanks for you help.

Any further troubleshooting tips out there?

ADD:

I just found this link http://www.linuxsa.org.au/tips/time.html explaining how to set the system time on a linux system. Setting the system time worked, but does not change the timezone. I assume a restart will require that I set the time again. It's a very useful temporary fix. The site has a few other suggestions that point to locations within the filesystem that once again, i do not seem to have.


- jimton - 2011-05-11 00:48

Can some explain how to change the time to UK time using winSCP in Windows 7.


- Hudson_Hawk04 - 2011-05-11 02:01

http://www.mythtv.org/wiki/Installing_MythFrontend_on_an_AppleTV#Fix_the_timezone