Timezone settings do not persist after rebooting

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
Everblack
Posts: 8
Joined: Thu Apr 27, 2017 3:39 pm

Timezone settings do not persist after rebooting

Unread postby Everblack » Thu Apr 27, 2017 3:51 pm

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.

User avatar
foetz
Moderator
Moderator
Posts: 6542
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Timezone settings do not persist after rebooting

Unread postby foetz » Thu Apr 27, 2017 4:02 pm

please post your full TIMEZONE file in [ code ] tags

Everblack
Posts: 8
Joined: Thu Apr 27, 2017 3:39 pm

Re: Timezone settings do not persist after rebooting

Unread postby Everblack » Thu Apr 27, 2017 4:07 pm

Code: Select all

# Time Zone
TZ=EST5EDT

User avatar
foetz
Moderator
Moderator
Posts: 6542
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Timezone settings do not persist after rebooting

Unread postby foetz » Thu Apr 27, 2017 9:59 pm

that's correct. is the date right if you sync it via ntp?

Everblack
Posts: 8
Joined: Thu Apr 27, 2017 3:39 pm

Re: Timezone settings do not persist after rebooting

Unread postby Everblack » Fri Apr 28, 2017 6:54 am

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.

User avatar
vishnu
Donor
Donor
Posts: 3174
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Timezone settings do not persist after rebooting

Unread postby vishnu » Fri Apr 28, 2017 9:28 am

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:

Everblack
Posts: 8
Joined: Thu Apr 27, 2017 3:39 pm

Re: Timezone settings do not persist after rebooting

Unread postby Everblack » Fri Apr 28, 2017 3:24 pm

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.

User avatar
uunix
Donor
Donor
Posts: 1793
Joined: Sun Mar 27, 2011 12:48 pm
Location: Stourbridge / England / UK

Re: Timezone settings do not persist after rebooting

Unread postby uunix » Fri Apr 28, 2017 4:02 pm

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:
-----------------------------------------------------------------------

Everblack
Posts: 8
Joined: Thu Apr 27, 2017 3:39 pm

Re: Timezone settings do not persist after rebooting

Unread postby Everblack » Fri Apr 28, 2017 4:37 pm

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.

hardwire
Posts: 7
Joined: Wed Aug 24, 2016 6:39 pm

Re: Timezone settings do not persist after rebooting

Unread postby hardwire » Fri Apr 28, 2017 4:52 pm

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.

Everblack
Posts: 8
Joined: Thu Apr 27, 2017 3:39 pm

Re: Timezone settings do not persist after rebooting

Unread postby Everblack » Fri Apr 28, 2017 5:32 pm

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.

User avatar
foetz
Moderator
Moderator
Posts: 6542
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Timezone settings do not persist after rebooting

Unread postby foetz » Fri Apr 28, 2017 8:14 pm

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

Everblack
Posts: 8
Joined: Thu Apr 27, 2017 3:39 pm

Re: Timezone settings do not persist after rebooting

Unread postby Everblack » Fri Apr 28, 2017 8:27 pm

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.

User avatar
foetz
Moderator
Moderator
Posts: 6542
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Timezone settings do not persist after rebooting

Unread postby foetz » Sat Apr 29, 2017 3:41 pm

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/


Return to “IRIX and Software”

Who is online

Users browsing this forum: necron2600, Trippynet and 1 guest