IRIX and Software

Timezone settings do not persist after rebooting

Hey all,

I recently got an SGI O2 workstation running IRIX 6.3 a couple of months ago, and I noticed that, when using FTP, the filesystem creation/modified date and timestamps are 3-4 hours ahead.

Sure enough, I check "date" in the shell, and it returns "PST8PDT", but in /etc/TIMEZONE, it was already set to TZ=EST5EDT (also tried TZ=:EST5EDT).

Here's what I've tried:

  • Setting the /etc/TIMEZONE file to reflect the new timezone, and nothing
  • Changed /etc/.profile to force the change to the TZ environment variable every time I open the shell.
  • Made changes to the /etc/cshrc file also.

Albeit doing all of this, this yielded no results. Filesystem dates are inaccurate (given I make new entries, creating files in a directory and so forth) and are still 3-4 hours ahead of the actual time. I have xntpd on it, which keeps track of the time sufficiently, but this change still did not do the trick.

After hours of Googling this particular issue, nothing seems to have worked.

Any help on this is *greatly* appreciated.
please post your full TIMEZONE file in [ code ] tags

Code: Select all

# Time Zone
TZ=EST5EDT
that's correct. is the date right if you sync it via ntp?
Through date, it is correct, although a red flag is that when the environment variable isn't set through those profile and cshrc changes, it somehow is PST8PDT (even when synced with NTP) and I had to change it every time, and even then it doesn't reflect the correct date and time in the file system entry dates (created or modified). It is three hours ahead and between 9-11 PM, it's already well into tomorrow.
Have you tried rebooting? Much as I hate to say it, since /etc/TIMEZONE is read by init(1), could be worth a try...
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:
Therein lies the issue. Every time I reboot it (whether I shut it down or use init 6 to reboot), the time zone is still on PST8PDT as opposed to EST5EDT in the /etc/TIMEZONE file.
This can't be right, /etc/TIMEZONE works fine, so something must be altering it or overriding the settings.. have you looked at you SYSLOG or captured your bootup output via terminal?

This is my TIMEZONE

Code: Select all

OCTANE02 8# cat /etc/TIMEZONE
#ident  "@(#)sadmin:etc/TIMEZONE        1.2"
#ident  "$Revision: 1.6 $"
#       Set timezone environment to default for the machinTZ
TZ=GMT0BST-1,M3.5.0/1,M10.5.0/2
-----------------------------------------------------------------------
Hey Ho! Pip & Dandy!
:Octane2: :O2: :Indigo: :Indy:
-----------------------------------------------------------------------
Here's something that might be either useless or at least somewhat helpful:

Code: Select all

Apr 27 03:22:18 5D:* xntpd[250]: xntpd 3-5.93e Thu Dec 10 10:50:26 PST 1998 (1)
Apr 27 03:22:18 5D:*  xntpd[250]: tickadj = 150, tick = 10000, tvu_maxslew = 14850, est. hz = 100
Apr 27 03:22:18 6D:* xntpd[250]: precision = 15 usec
Apr 27 03:22:18 6D:* xntpd[250]: read drift of 0.000 from /usr/freeware/etc/ntp.drift
Apr 27 03:22:18 6D:* 7 xntpd[250]: getconfig: Couldn't open </etc/ntp.conf>


Other than that, no signs from logs that were captured during boot up.
I could be wrong but I think you also need to have the correct timezone settings in your PROM. Start your O2, press escape to go to the PROM and select Command Monitor. Type "printenv" and see if the TZ value matches where you live. If not, you'll have to change it using the "setenv" command. Type "init" after changing/setting values and reboot again.
Hate to say that setting the environment variable in the Command Monitor, and rebooting it using "init" did nothing. Filesystem date/time and last login is in favor of PDT/PST and not EDT/EST.
Everblack wrote: Here's something that might be either useless or at least somewhat helpful:

Code: Select all

Apr 27 03:22:18 5D:* xntpd[250]: xntpd 3-5.93e Thu Dec 10 10:50:26 PST 1998 (1)
Apr 27 03:22:18 5D:*  xntpd[250]: tickadj = 150, tick = 10000, tvu_maxslew = 14850, est. hz = 100
Apr 27 03:22:18 6D:* xntpd[250]: precision = 15 usec
Apr 27 03:22:18 6D:* xntpd[250]: read drift of 0.000 from /usr/freeware/etc/ntp.drift
Apr 27 03:22:18 6D:* 7 xntpd[250]: getconfig: Couldn't open </etc/ntp.conf>


Other than that, no signs from logs that were captured during boot up.

oh you're running ntp during boot? if so disable that and check the time again
foetz wrote:
Everblack wrote: Here's something that might be either useless or at least somewhat helpful:

Code: Select all

Apr 27 03:22:18 5D:* xntpd[250]: xntpd 3-5.93e Thu Dec 10 10:50:26 PST 1998 (1)
Apr 27 03:22:18 5D:*  xntpd[250]: tickadj = 150, tick = 10000, tvu_maxslew = 14850, est. hz = 100
Apr 27 03:22:18 6D:* xntpd[250]: precision = 15 usec
Apr 27 03:22:18 6D:* xntpd[250]: read drift of 0.000 from /usr/freeware/etc/ntp.drift
Apr 27 03:22:18 6D:* 7 xntpd[250]: getconfig: Couldn't open </etc/ntp.conf>


Other than that, no signs from logs that were captured during boot up.

oh you're running ntp during boot? if so disable that and check the time again


That was done, time is set correctly even well even with NTP off (with the exception of the timezone) as Fri Apr 28 23:25:09 PDT 2017. Still reverts to PST8PDT when it reboots.
maybe you hit a bug. 6.3 was the first irix for the o2 and only ran there. do you have some patches installed?
in doubt you can get some from the nekochan ftp: ftp.nekochan.net/pub/irix/Patches/IRIX_6.3/