JDK-6782034 : Timezone is still a issue after installing patch tzupdater.jar
  • Type: Bug
  • Component: tools
  • Sub-Component: updaters
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-12-08
  • Updated: 2011-11-29
  • Resolved: 2011-11-29
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
JRE 6u3

ADDITIONAL OS VERSION INFORMATION :
Windows XP SP 3

A DESCRIPTION OF THE PROBLEM :
There was issue with Venezulan Time Zone Caracas GMT -4.30
When used java code to get the time there is difference about 30 Minutes.
So installed the patch KB951072 tzdata2008g but still have the same problem.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just get the system time using the java code and time zone must be Caracas GMT -4.30


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
When executing the gettime() through java code it should display the system time.
ACTUAL -
Mismatch in system time to the getTime from java for about 30 minutes

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.util.Calendar;
import java.text.SimpleDateFormat;

public class DateUtils {
  public static final String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";

  public static String now() {
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
    return sdf.format(cal.getTime());

  }

  public static void  main(String arg[]) {
    System.out.println("Now : " + DateUtils.now());
  }
}
---------- END SOURCE ----------

Comments
EVALUATION Unable to reproduce the report with the information we have. Will reopen if we receive more information.
29-11-2011

EVALUATION This is most likely a duplicate of 6650748.
10-12-2008