-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
9.0.1.2
-
None
Steps to Reproduce
- use -Duser.timezone=Europe/Berlin
- date use for mat mm/dd/yyyy (non time)
- at start datebox = empty
- key in value 03/29/2500
- debug at AuRequest class line 108 then value of sval = $z!t#d:2500.3.28.23.0.0.0 mean time offset at java script side for Europe/Berlin is GMT + 1
- handle onChange event of DateBox class to get offset
Datebox dateBox = (Datebox)((InputEvent)event).getTarget(); LocalDateTime dateTime = dateBox.getValueInLocalDateTime(); long offsetSecond = dateBox.getValueInZonedDateTime().getOffset().getTotalSeconds(); long offsetMiliSecond = TimeZone.getDefault().getOffset(dateBox.getValue().getTime());
Current Result
dateTime = 2500.3.29 01.0.0.0
offset get by both library = 720000 mili second
that value by 1 hour of zone offset and 1 hour of DST
Expected Result
dateTime = 2500.3.29 00.0.0.0
Debug Information
Workaround