JDK-8339645 : (tzupdater) Improve parsing of Day/Month in tzdata rules
  • Type: Bug
  • Component: tools
  • Sub-Component: updaters
  • Affected Version: tz2.3.3
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-06
  • Updated: 2024-10-18
  • Resolved: 2024-10-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tz2.3.3Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
TzdbZoneRulesProvider currently parses tzdata rules with the assumption that the shortened Day or Month values will be used (e.g. "Mon" instead of "Monday")

According to the zic man page, which the tzdata format adheres to, the long or short name may be used:

===
       IN Names the month in which the rule takes effect. Month
              names may be abbreviated.

       ON Gives the day on which the rule takes effect. Recognized
              forms include:

                5 the fifth of the month
                lastSun the last Sunday in the month
                lastMon the last Monday in the month
                Sun>=8 first Sunday on or after the eighth
                Sun<=25 last Sunday on or before the 25th

              A weekday name (e.g., Sunday) or a weekday name preceded
              by “last” (e.g., lastSunday) may be abbreviated or spelled
              out in full.

===

JDK-8339644 tracking the JDK related changes
Comments
JDK-8339803 should also be ported to tzupdater code base
12-09-2024