Daylight Savings Time Fix


 
Thread Tools Search this Thread
Operating Systems Solaris Daylight Savings Time Fix
# 1  
Old 02-20-2007
Daylight Savings Time Fix

Hello,
I've been looking at coming up with a time change on my Sun workstations since daylight savings time comes early this year. Someone at work told me that a sun patch is available if you have a maintenance contract. It was recommended to just set your systems to GMT time zone. How is this done using the date command or should it be done different?

Thanks,
# 2  
Old 02-20-2007
The patches are in the Recommended patch cluster which is available to anyone. You should be able to download it and install.

Carl
# 3  
Old 02-21-2007
If I don't want to use the patch, what is the correct command to reset the time and zone to GMT?

Thanks
# 4  
Old 02-21-2007
Sorry, your comment indicated you thought you couldn't get the patch. Simply edit your /etc/TIMEZONE file and replace the current TZ setting with one of the filenames in /usr/share/lib/zoneinfo. So if you wanted to do just GMT, you'd have:

Code:
# @(#)init.dfl 1.2 92/11/26
#
# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not.  To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, or any of the LC_* environment variables.
#
TZ=GMT

If you can't reboot, you'll need to change your TZ environment variable.

That's if you want to change the entire system. Otherwise you can just set your environment variable and the time will be displayed for just you as GMT.

Carl
# 5  
Old 02-21-2007
Found the fix, made the adjustments for testing and it works.

Thanks
# 6  
Old 02-21-2007
fyi....

Just an FYI....you should check to see if any of your apps that use java need the java DST update as well. it depends on the version as well, but DST doesn't end just at the OS.

if the application uses these classes, you should update your java as well. you can usually find out from your vender for your app. In some cases, you need to reinstall java, in some cases it is as easy as using the tzupdater.

java.text.DateFormat
java.textSimpleDateFormat
java.util.Date
java.util.Calendar
java.util.GregorianCalendar
java.util.SimpleTimeZone
java.util.TimeZone

-Sowser
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Auto resetting for Daylight Savings Time

We have an ancient Unix box from Siemens. Every year the system automatically changes the time for EST or DST. Unfortunately since the box is so old the dates that the times change are the old dates and not the current ones set during (I think) the Bush years. When I have to set the time back... (3 Replies)
Discussion started by: jbcamel
3 Replies

2. AIX

Daylight savings time

Hello everyone The last sunday I have to check that my servers has change Daylight savings time but only two servers do it and all the rest doesnt. In smitty where I need to change, for my server take automatic the daylight savings time. Thanks for your tips The next its a message for... (0 Replies)
Discussion started by: lo-lp-kl
0 Replies

3. AIX

Daylight savings time

Our aix unix box did not recognize daylight savings time since it was moved up. Could someone please give me the syntax to change the hour? I looked in man and couldn't find anything, or I missed it. I'm in 3rd grade so if you can, please provide specific instructions. Thanks! (2 Replies)
Discussion started by: vbagwell
2 Replies

4. Solaris

Daylight Savings Time Quirk

I am running a SUN E450 on solaris (5.7). I have applied the DST patch and the system time is correct. However when users login the get the time wrong (+4 hours) (I am in EDT Zone). Does anyone know where a system wide variable for this could be set. (Root user gets the right time) Frank (3 Replies)
Discussion started by: frankkahle
3 Replies

5. Linux

Daylight savings patch for Linux?

Is there a patch availible for the upcoming new daylight savings time ordeal? (4 Replies)
Discussion started by: shorty
4 Replies

6. UNIX for Dummies Questions & Answers

Daylight savings change

Hey guys, How do i check and see if my server will automatically adjust itself for daylight savings? Thanks! (6 Replies)
Discussion started by: kingdbag
6 Replies

7. Solaris

daylight savings change

I have a solaris 8 server - and I need to ensure the daylight savings change properly but I dont think its set up correctly: /usr/sbin/zdump -v -c 2005 $TZ GB-EIRE Wed Oct 26 12:20:02 2005 UTC = Wed Oct 26 12:20:02 2005 GB isdst=0 GB-EIRE Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52... (5 Replies)
Discussion started by: frustrated1
5 Replies

8. UNIX for Dummies Questions & Answers

Daylight savings and cron

I was trying to schedule a job to run on the last Sunday of October. To stop a process that I have running before daylight savings automatically falls back at 2AM then restart it after the hour has been regained. I thought I was smart (my mistake) and scheduled the 2 entries in cron. I figured that... (3 Replies)
Discussion started by: cindylouwho
3 Replies

9. Post Here to Contact Site Administrators and Moderators

Daylight Savings - Timezones etc...

Hey Neo - or other Unix.com staffers - I've selected my Timezone for the forums - however it's wrong for my Country - as we have Daylight Savings for 6 months of the year - so currently were 1 hour ahead of the time that is provided in the personal options pages. Can we add another for this - no... (5 Replies)
Discussion started by: peter.herlihy
5 Replies
Login or Register to Ask a Question