Skip to content

[MNG-5446] AM/PM inconsistency in mng-3827 and mng-3864 ITs?#3

Closed
mcculls wants to merge 1 commit intoapache:masterfrom
mcculls:MNG-5446
Closed

[MNG-5446] AM/PM inconsistency in mng-3827 and mng-3864 ITs?#3
mcculls wants to merge 1 commit intoapache:masterfrom
mcculls:MNG-5446

Conversation

@mcculls
Copy link
Copy Markdown
Contributor

@mcculls mcculls commented Mar 6, 2013

See https://jira.codehaus.org/browse/MNG-5446 - Maven appears to ignore the PM setting when parsing "2008-11-09 11:59:03.0 PM". This is because the Plexus DateConverter has historically used 'HH'='Hour in day (0-23)' to parse the hours instead of 'hh'='Hour in am/pm (1-12)'. The parsed date-time is therefore written back out as "2008-11-09 11:59:03" instead of "2008-11-09 23:59:03".

If this behaviour is wrong and can be safely fixed then updating the ITs to use "2008-11-09 11:59:03.0 AM" would avoid future IT failures if/when the Date conversion is finally fixed.

If however the old behaviour should be maintained then no change is required in the ITs. (I'd like to know because I'm doing some refactoring of the Sisu-Plexus internals to improve re-use and consistency.)

BTW, does anyone happen to know of plugins whose goals/mojos have Date parameters?

…s unrelated ITs that happen to expect '2008-11-09 11:59:03.0 PM' to be converted to '2008-11-09 11:59:03' so avoid this by changing the input string in those ITs to use 'AM' instead.
@mcculls
Copy link
Copy Markdown
Contributor Author

mcculls commented Mar 15, 2013

@mcculls mcculls closed this Mar 15, 2013
@mcculls mcculls deleted the MNG-5446 branch March 15, 2013 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant