Fixing the timezone on Solaris 10


I have no ideas how to fix this. In my /etc/TIMEZONE file the TZ variable has the correct value (Canada/Eastern) and still it's showing a -1 hour lag. Where else should I be looking?

Best Answer

You should check what your hardware clock is. I would suggest doing this:

  • Set the UTC time correctly. i.e. (5 AM in the example):

$ date -u -s "05:00"

Thursday, April 29, 2010 05:00:00 AM UTC

  • Set the hardware clock accordingly (tod for SPARC and rtc for x86):

$ rtc -c (the '-c' argument sets the DST correctly)

  • Check the date again:

$ date

Thursday, April 29, 2010 02:00:11 AM ART