SunOS 5.6: timezone data patch

Thread Tools Search this Thread
Operating Systems Solaris SunOS 5.6: timezone data patch
# 1  
Old 02-22-2007
SunOS 5.6: timezone data patch

Does anyone know if there is a patch for SunOS 5.6 timezone update for new daylight savings times. I have looked and have updated my 5.8 machine. Can not find one for 5.6. I still use one box for a certian piece of hardware that can not use the newer versions.
# 2  
Old 02-23-2007
Most of the following found at

Refer to the `zic`, `ctime`, `TIMEZONE`, `environ(5)` man pages for more help.

The world's central repository for zoneinfo source files can be found via anon ftp from
The "tzdataYYYYr.tar.gz" file in this directory (YYYY is the year and r a release letter) contains sources. A quick check shows the latest to be tzdata2007b.tar.gz

Note that this is "unofficial"; there are few "official" sources for this information worldwide and national governments routinely change the rules for a variety of reasons, practical, ecological or even political, without informing anyone beforehand. The zoneinfo sources on elsie are kept updated mainly through the efforts of the IT community.

Check timezone issue with
zdump -v US/Eastern|grep 2007

(You can change Eastern to what ever timezone you want)

Following script by Greg D.
#!/bin/sh -x


# Change dir to standard location of timezone rule files
# for Solaris 7 and earlier and un-tar
cd /usr/share/lib/zoneinfo || exit 1
/usr/bin/tar xf $TZDATATAR || exit 1

# use zic to compile all src files with a "Rule"
for i in `/usr/bin/grep -l Rule *` ; do
  /usr/sbin/zic $i

# use zic to compile 2 src files which define a Zone but no Rule
/usr/sbin/zic etcetera
/usr/sbin/zic factory

# use zic to link legacy TZ names to new TZ standard names
/usr/sbin/zic backward

# change ownership to be in line with expected Solaris values.
/usr/bin/chown -R bin:bin *

Copy the tar file and this script into /tmp - su to root.
Execute /tmp/tzinstall /tmp/tzdata2007b.tar

Verify with zdump command that you are now good (should see Mar 11 versus the April date).
# 3  
Old 02-23-2007
Unfortunately there isn't a POSIX patch though unless you pay SUN for researching and programming.

We're going to copy our Solaris 8 timezone directories to the Solaris 2.6 and 7 servers.

# 4  
Old 02-23-2007
BOFH, have you done the copy already and if so, what were the results? (good point about the POSIX )
# 5  
Old 02-23-2007
Originally Posted by RTM
BOFH, have you done the copy already and if so, what were the results? (good point about the POSIX )
I haven't done it. The servers belong to another admin and he has it scheduled for next weekend (we can only apply patches every other weekend). If it works, great, otherwise he'll be in the following weekend to manually change times Smilie

# 6  
Old 02-23-2007
Originally Posted by BOFH
If it works, great, otherwise he'll be in the following weekend to manually change times Smilie
Please see Understanding Unix Timekeeping where I explain why I think that's not a great idea and what I would do instead.
# 7  
Old 02-23-2007
Good article. Several good bits there (I'll be checking out cron's source code for one bit Smilie ).

While I suggested simply editing the zone files and recreating them for the right times, an easy enough task, management declined and wanted to just manually change the time. I think we convinced them to at least attempt to use the zone files from a patched Solaris 8 system which is what's happening next weekend. The fallback, if the patch fails is to manually change the time. I don't expect the transfer to fail though.

I will try out the TZ bit you used for /etc/TIMEZONE on my home Solaris 7 box. Thanks.

Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. AIX

wtmp file - is there a patch to export the data another file each day?

sorry for being a noob, i am trying to find which user accessed the server at what time and there ip address at first i used who command but the output didn't contain the ip address then i used the last command which provided me with the ip of the users but when i searched i searched and found that... (1 Reply)
Discussion started by: hercules_1010
1 Replies

2. Solaris

Setting timezone Sunos 5.8 & adjusting

I am new to this so i figure this is an easy one.. How do i change the time zone from Central to Eastern time in SunOS 5.8 ? I thought I needed to edit the /etc/TIMEZONE and them issue TZ=US/Eastern but I want to check. Is a reboot required afterwards? If I want to change the system time... (3 Replies)
Discussion started by: jay6ird
3 Replies

3. IP Networking

Patch-o-matic (patch for iptable) for linux2.4.08 & iptable1.2.7a

Hello friends I'm running Redhat 9.0 with linux kernel 2.4.20-8 & have iptables version 1.2.7a & encountering a problem that I narrate down. I need to apply patch to my iptable and netfilter for connection tracking and load balancing that are available in patch-o-matic distribution by netfilter.... (0 Replies)
Discussion started by: Rakesh Ranjan
0 Replies

4. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

5. UNIX for Dummies Questions & Answers


Hi, i am searching to change the timezone on a HP-UX11 system. Since last weekend the summertime started i am not able to change the time to the new time, every day the time changes back to wintertime. I think the problem is that the server is on the wrong timezone. Can someone help me please?... (1 Reply)
Discussion started by: eddyvdv
1 Replies

6. UNIX for Dummies Questions & Answers


Hi, I got an question about changing timezone thrue command line on a SunOS Release 4.1.2 without restarting the computer. Now it's set on WET and I want to set the timezone to CET (GMT +1) Plz somebody help me. Regards Novisern:confused: (5 Replies)
Discussion started by: Novisern
5 Replies

7. UNIX for Dummies Questions & Answers


Hello again, under hp-ux i have a file /etc/TIMEZONE. here is definied which timezone i am. i dont know who reads this file to set after reading the timezone under /usr/lib/tztab. my 2 questions, who reads the file /etc/TIMEZONE ( which service ) and do i need in the first line to set my... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies
Login or Register to Ask a Question

Featured Tech Videos