Benches macOS

2

Clock preferences won't save

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I originally had a problem with my clock preferences being stuck on GMT. I tried all sorts of solutions suggested on these forums and none of them worked. Finally I got out the old system install disk and did a re-install. Not an erase and install, but the one that archives your accounts and such. I re-installed 10.4. Upon restart the GMT problem seemed to be gone. I set my time zone and set the clock to automatically update using the internet and all was well. Then to get my computer back to where it was with 10.4.11 I ran the system updates. After restarting my clock was back to GMT time. I'm in PST. So now I go into the preferences for date and time and I can change the time zone which I couldn't do before. The time in the s date and time preferences window changes to the correct time, but the clock in my menu window doesn't change. When I quit out of the system preferences and then re-open them everything has reverted back to GMT. I can still change everything back, but the changes never stick. At least before I was able to manually change the time and save it, but now I can't even do that. Any help would be appreciated.

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Spencer Filichia

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    After doing some more digging I seemed to have solved by own problem. Thought I'd share it just in case someone else has the problem.

    The problem ended up being that my "localtime" file was locked. When originally trying to solve this problem there was a solution suggested about the "localtime" file being corrupt. That was found on this post.

    +
    http://discussions.apple.com/message.jspa?messageID=8418135#8418135+

    A post by barnamink read:

    I had this problem, and after unsuccessful attempts by Apple's support to diagnose it, I figured it out myself. The problem was with the /etc/localtime file. It was a directory, instead of a symlink. I think Tiger (which is just what I migrated from) used to have it as a directory, whereas Leopard changed it to a symlink. Long story short, if you erase / rename your /etc/localtime, and then set the timezone, it will start working.

    You will need to enable the root user for this, so be sure you know what you're doing. But once you're root, just do a

    +cd /etc+

    +mv localtime localtime.old+

    Then set the time zone again, and this time it will remember it.

    I played with this but couldn't get it to stick. The "localtime" file which is really just an alias would still go back to GMT. I discovered that it should point back to my time zone which is "PST". So I found those files.

    usr/share/zoneinfo/US/pacific

    I made a new alias and named it localtime. Then I replaced the one in the /etc directory. The funny thing was that it would point back to the "pacific" file, but when I would open my date and time preferences and try to reset the time zone it changed the alias to point back to GMT which was located at usr/share/zoneinfo. So to try and stop this from happening I repeated the process of making a new alias and then locked it. It prevented it from repointing back to the GMT file, but it did not solve my problem.

    Then I did the system re-install. I had forgotten about locking the file, by the way. The re-install I think fixes what ever the problem was with not being able to change timezones, but then I ran into the problem of saving the new time zone. The problem was the locked "localtime" file. I tried doing the same thing of just replacing this file, but now that it was locked I couldn't delete it or even unlock it.

    I finally fixed the problem, but I may have taken the long way around to do it. I'll explain exactly what I did and then say what I think would be the quicker solution. I used the terminal to unlock the "localtime" file. I got this info from another post.

    +
    http://discussions.apple.com/thread.jspa?messageID=8073323&#8073323+

    The solution was posted by Steve Gregorich and I adopted it for my problem. It boils down to this.

    +Open /Applications/Utilities/Terminal, and paste this text in, but DON'T press enter yet.+

    +chflags nouchg+

    +Make sure there is one space in front of the text and type a space after "nouchg."+

    +Now drag the affected folder into Terminal, and press enter.+

    +After closing Terminal, go back and do the "get info" thing again.+

    +If that does not work, repeat the process, but put "sudo" in front of "chflags". You'll need to type your admin password in that case.+

    +Good Luck.+

    +Message was edited by: Steve Gregorich+

    I had to use the "Sudo" command and so this is what I typed.

    +sudo chflags nouchg /private/etc/localtime+

    That did indeed unlock the file. I should have tried my clock preferences at this step to see if they saved, but I didn't because my mind was still on the track of replacing the file. If you try this solution, I suggest trying the preferences at this point, because I think what I did next was unnecessary. I went through the whole process I described earlier about making a new alias and replacing he "localtime" file with the new alias. After doing that my clock now seems to work.

    Sorry for anyone who reads this if I rambled and took too long to explain, but I thought clarity was important. I've been trying to solve this whole clock thing or over a month on and off and so actually finding a solution is a big deal. I hope this helps anyone else who may have this problem.

    Cheers!

    Message was edited by: Spencer Filichia

  2. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for the great info Spencer! 🙂