US timezone changes Mar 2007


 
Thread Tools Search this Thread
Operating Systems Solaris US timezone changes Mar 2007
# 1  
Old 03-01-2007
US timezone changes Mar 2007

Hi

As per Suns guide, I have installed the 2 patches that are required to prepare for the US DST change. The first patch updates the zoneinfo database in /usr/share/lib/zoneinfo and I can test that the patch has worked by running the following command

zdump -v US/Eastern | grep 2007

The second patch is a patch that makes changes to the libc library for POSIX based timezone stuff. Which I have applied and rebooted

My question , How do I test that the libc/POSIX patch has worked???? .... What command can I use to see if the date has changed ? As I say testing the zoneinfo patch is easy...but this one has me stumped


Any help would be greatly appreciated

Cheers
Gary
# 2  
Old 03-01-2007
See Understanding Unix Timekeeping which has a perl script that I used for testing.
# 3  
Old 03-02-2007
Quote:
Originally Posted by Perderabo
See Understanding Unix Timekeeping which has a perl script that I used for testing.
I assume you find some 'off time', or a non-production machine and actually set the system clock to some time just before the time change is suposed to take place (after disabling cron). THEN watch it change.

Also, With Solaris (and lots of other systems), JAVA has it's OWN timezone files that need changing (patching) ! Sun has a 'tzupdater<xxx>.zip' on it's site.

Oh, I forgot ! That's some SERIOUSLY GOOD info, and a really cool testing script !!

Last edited by dsbeerf; 03-02-2007 at 12:19 AM..
# 4  
Old 03-09-2007
And I assume all the Solaris folks are busy updating for the latest BUG found in Java - Bug ID 6466476. Read that bug and 6530336 for info.

Here is the info from 6530336 (as of this posting):

Quote:

Update Date: Thu Mar 08 00:00:00 MST 2007

Bug ID: 6530336

Synopsis: (tz) CRITICAL DST bug in latest jdk releases

Category: java

Subcategory: classes_text

State: 8-Fix Available

Description:

FULL PRODUCT VERSION :
All current versions (1.4.2_13, 1.5.0_11, 1.6)

ADDITIONAL OS VERSION INFORMATION :
Anything

A DESCRIPTION OF THE PROBLEM :
The recent change to the definition of EST timezone to remove DST awareness has broken basic functionality in date handling.

The problem is very simple. The DateFormat parser uses the contents of String zoneStrings[][] in class DateFormatSymbols to identify the timezone based on the zone value in the input date string.

The zoneStrings[][] array defines "EST" before "America/New_York" so sets the timezone for the parser to the now non-DST aware "EST" zone.

This is a very very serious problem.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and run the test code below as shown.
First run as java -Duser.timezone=America/New_York Moh

and the output is correct: Wed Jun 06 14:00:00 EDT 2007

Then run as java -Duser.timezone=America/Los_Angeles Moh

and the output is wrong: Wed Jun 06 12:00:00 PDT 2007

The correct output would be 11:00:00 PDT 2007.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
In the test case when in the Los Angeles time zone I expect the time to be 11:00:00 PDT but it wrongly displays 12:00:00 PDT.
ACTUAL -
As above.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.text.*;
import java.util.*;

public class Moh {
public static void main(String[] args) throws Exception {
SimpleDateFormat timestampFormatWithZone = new SimpleDateFormat("yyyy-MM-dd HH:mm zzz");
Date date = timestampFormatWithZone.parse("2007-06-06 14:00 EDT");
// Calendar calendar = timestampFormatWithZone.getCalendar();
System.out.println(date);
}
}

---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :This is a very serious problem which has required us to scramble. We are actively deleting the "EST" file from jre/lib/zi to restore prior behaviour, and particularly to ensure that date parsing works correctly.

Date Modified: 2007-03-02 09:25:08 GMT+00:00


Work Around:

Please remove <JDK_HOME>/jre/zi/EST (or <JRE_HOME>/lib/zi/EST). This will enable the old EST to America/New_York mapping.

Date Modified: 2007-03-02 13:17:00 GMT+00:00


Suggested Fix:

Evaluation:

Fixed by patch:

Integrated in Build:

Duplicate of:

Related Change Request(s):

6466476

Date Modified: 2007-03-08 20:00:29 GMT+00:00
# 5  
Old 03-10-2007
MySQL

Hi hcclnoodles,

Can u say what are the two patches that u have updated. what guidde did u refer for this

thank u
# 6  
Old 03-10-2007
Quote:
Originally Posted by sandeepkv
Hi hcclnoodles,

Can u say what are the two patches that u have updated. what guidde did u refer for this

thank u
There is a link to our search function on every page. I put in "dst patch", clicked around the results a little and wound up on this page: http://sunsolve.sun.com/search/docum...=1-26-102775-1
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

18-Mar-2012 14:25:03.209 general: error: socket: file descriptor exceeds limit (4096/4096)

I have BIND 9.8.1-P1 cache only DNS server running in Solaris 10. I have upgraded the same from 9.6.1 to 9.8.1-P1. Now i am facing "file descriptor exceeds limit (4096/4096)" error frequently on the server. Please help me on this issue! (1 Reply)
Discussion started by: sandeep.tk
1 Replies

2. AIX

Timezone Setting

Hi On several AIX 5.3 LPARs the timezone is currrently set to: TZ=NZST-12NZDT,M9.5.0/02:00,M4.1.0/03:00 Daylight savings in NZ starts on Sun 28th Sep 2008, which is the fourth Sunday. Do I need to change my TZ variable to NZST-12NZDT,M9.4.0/02:00,M4.1.0/03:00 or will AIX interpret the fifth... (2 Replies)
Discussion started by: KiwiP
2 Replies

3. Shell Programming and Scripting

sed remove date ex. "Mar 25 2008"

is there any way to remove data out of a file with sed? sample file: 2 3 414 Mar 25 2008 223 312 4244 Feb 25 2008 5 312 422344 Sept 25 2008 output: 2 3 414 223 312 4244 5 312 422344 (14 Replies)
Discussion started by: katrvu
14 Replies

4. Solaris

2007 timezone patches...

could sun make this more complex? http://sunsolve.sun.com/search/document.do?assetkey=1-26-102775-1 I think I need a 2nd cup to identify what patches I need to address the 2007 timezone changes... manny (2 Replies)
Discussion started by: mr_manny
2 Replies

5. UNIX for Advanced & Expert Users

Timezone

HI ; I got Solaris8 installed oon Sunfire V440 .I have TZ=GMT in /etc/TIMEZONE , but when i log in as root i see the date in GMT+1. So i have every time to "set TZ=GMT ; export $TZ" . How can i set the TZ=GMT at the startup defenitely. Thanks :) (7 Replies)
Discussion started by: oss
7 Replies

6. UNIX for Dummies Questions & Answers

timezone

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

7. UNIX for Dummies Questions & Answers

Timezone

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

8. UNIX for Dummies Questions & Answers

Timezone

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