ADDITIONAL SYSTEM INFORMATION :
Ubuntu 18.04, Windows 10
A DESCRIPTION OF THE PROBLEM :
When i use this directive in timezone America/Sao_Paulo the date is wrong
System.out.println("default time zone: " + TimeZone.getDefault().getID());
System.out.println("Default: " + calendar.getTime());
Output
Now is UTC: Fri Nov 15 02:36:47 UTC 2019
right java 11 Adopt
Time zone: UTC
default time zone: America/Sao_Paulo
sun.util.calendar.ZoneInfo[id="America/Sao_Paulo",offset=-10800000,dstSavings=0,useDaylight=false,transitions=93,lastRule=null]
Default: Thu Nov 14 23:36:07 BRT 2019
wrong java 11 OpenJdk
Time zone: UTC
default time zone: America/Sao_Paulo
sun.util.calendar.ZoneInfo[id="America/Sao_Paulo",offset=-10800000,dstSavings=3600000,useDaylight=true,transitions=129,lastRule=java.util.SimpleTimeZone[id=America/Sao_Paulo,offset=-10800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=10,startDay=1,startDayOfWeek=1,startTime=0,startTimeMode=0,endMode=3,endMonth=1,endDay=15,endDayOfWeek=1,endTime=0,endTimeMode=0]]
Default: Fri Nov 15 00:36:47 BRST 2019
Becouse we dont have -3 hours now is -2 hours
REGRESSION : Last worked in version 11.0.5
FREQUENCY : always
Ubuntu 18.04, Windows 10
A DESCRIPTION OF THE PROBLEM :
When i use this directive in timezone America/Sao_Paulo the date is wrong
System.out.println("default time zone: " + TimeZone.getDefault().getID());
System.out.println("Default: " + calendar.getTime());
Output
Now is UTC: Fri Nov 15 02:36:47 UTC 2019
right java 11 Adopt
Time zone: UTC
default time zone: America/Sao_Paulo
sun.util.calendar.ZoneInfo[id="America/Sao_Paulo",offset=-10800000,dstSavings=0,useDaylight=false,transitions=93,lastRule=null]
Default: Thu Nov 14 23:36:07 BRT 2019
wrong java 11 OpenJdk
Time zone: UTC
default time zone: America/Sao_Paulo
sun.util.calendar.ZoneInfo[id="America/Sao_Paulo",offset=-10800000,dstSavings=3600000,useDaylight=true,transitions=129,lastRule=java.util.SimpleTimeZone[id=America/Sao_Paulo,offset=-10800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=10,startDay=1,startDayOfWeek=1,startTime=0,startTimeMode=0,endMode=3,endMonth=1,endDay=15,endDayOfWeek=1,endTime=0,endTimeMode=0]]
Default: Fri Nov 15 00:36:47 BRST 2019
Becouse we dont have -3 hours now is -2 hours
REGRESSION : Last worked in version 11.0.5
FREQUENCY : always
- duplicates
-
JDK-8231299 (tz) Upgrade Timezone Data to tzdata2019b
-
- Resolved
-