Community
Participate
Working Groups
xs:dayTimeDuration relies on javax.xml.datatype.Duration.getTimeInMillis() which takes a date to do the year and monts stuff correctly. For our usecase, this is bad, since it also takes daylight savings time into account. Suddenly, 2 days and is not 2 days if you are two days away from a DST switch, which we happen to be in Denmark right now. The fix is to use the fields as they are, and not meddle with javax.xml.datatype.Duration for math.
Fixed in HEAD