DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21014>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21014 Touch not precise enough ------- Additional Comments From [EMAIL PROTECTED] 2003-06-23 16:50 ------- Sorry, I made myself not very clear: The problem is NOT the TOUCH itself which is correct including seconds on my system. The problem IS the datetime parameter, which does not take seconds as input pattern. I think it fails because TOUCH uses internally DateFormat df = DateFormat.getDateTimeInstance( DateFormat.SHORT, DateFormat.SHORT, Locale.US ); [..] df.parse( <datetime-pattern> ); and this DateFormat does not accept seconds because it's of type SHORT. After changing it to MEDIUM, my modified TOUCH is able to parse the following pattern: <tstamp> <format property="buildtime" pattern="MM/dd/yyyy HH:mm:ss aa"/> </tstamp> which it did not parse before, resulting in a java.text.ParseException. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]