We're updating the issue view to help you get more done. 

"pt", wrong time separator for non-Gregorian availableFormats

Description

Deleted Component: other

"pt" has inconsistent/incorrect time separators for certain availableFormats items for non-Gregorian calendars.

The following standard formats with ':' are used in all calendars:

1 2 3 4 5 standard formats for all calendars <pattern>HH:mm:ss zzzz</pattern> <pattern>HH:mm:ss z</pattern> <pattern>HH:mm:ss</pattern> <pattern>HH:mm</pattern>

Gregorian has the following availableFormats items for time, all using ':'

1 2 3 4 5 6 7 8 availableFormats for gregorian <dateFormatItem id="HHmm">HH:mm</dateFormatItem> <dateFormatItem id="HHmmss">HH:mm:ss</dateFormatItem> <dateFormatItem id="hm">h:mm a</dateFormatItem> <dateFormatItem id="Hm">HH:mm</dateFormatItem> <dateFormatItem id="hms">h:mm:ss a</dateFormatItem> <dateFormatItem id="Hms">HH:mm:ss</dateFormatItem> <dateFormatItem id="ms">mm:ss</dateFormatItem>

Non-Gregorian calendars all have the first 4 availableFormats time items shown below, using 'h', 'min', or 's' for time separators. I think these should also use ':' and were probably just overlooked. In fact, islamic has additional availableFormats time items using ':', also shown below:

1 2 3 4 5 6 7 8 9 availableFormats for buddhist, islamic, japanese, roc <dateFormatItem id="HHmm">HH'h'mm</dateFormatItem> <dateFormatItem id="HHmmss">HH'h'mm'min'ss's'</dateFormatItem> <dateFormatItem id="Hm">HH'h'mm</dateFormatItem> <dateFormatItem id="ms">mm'min'ss's'</dateFormatItem> islamic also has these: <dateFormatItem id="hm" draft="contributed">h:mm a</dateFormatItem> <dateFormatItem id="hms" draft="contributed">h:mm:ss a</dateFormatItem> <dateFormatItem id="Hms" draft="contributed">HH:mm:ss</dateFormatItem>

Environment

xpath

None

locale

None

Status

Assignee

Peter Edberg

Reporter

Peter Edberg

tracReporter

pedberg

tracOwner

pedberg

tracResolution

fixed

tracStatus

closed

Reviewer

John Emmons

tracCreated

Oct 03, 2012, 11:36 PM

Fix versions

Priority

medium