The manual entry for the tstamp task (http://ant.apache.org/manual/Tasks/tstamp.html) provides an example of how to configure the time stamp date format using a locale. This is the example: <tstamp> <format property="TODAY_UK" pattern="d-MMMM-yyyy" locale="en,UK"/> </tstamp> Unfortunately UK is not a valid country code for a locale. I think the intention was to use GB as the country code. GB is the iso country code for the United Kingdom of Great Britain and Northern Ireland. The Java Locale class doesn't really make this very clear by defining a constant called UK for the en,GB locale. See http://www.docjar.com/html/api/java/util/Locale.java.html#481 Please update the example in the manual to have the locale set to "en,GB".
Created attachment 29993 [details] Patch for doc fix Added a patch to fix this. Tested with Ant 1.8.3 on Windows 7 (not that it matters). First patch contribution, please let me know if I've not followed the right procedure!
fixed with svn revision 1452023 Patrick, you've done everything the best way possible, many thanks. It's just that we comitters are (more than just) a bit slow.