You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2017/06/19 22:21:27 UTC
svn commit: r1799286 -
/tomcat/tc8.5.x/trunk/test/org/apache/juli/TestFileHandler.java
Author: markt
Date: Mon Jun 19 22:21:26 2017
New Revision: 1799286
URL: http://svn.apache.org/viewvc?rev=1799286&view=rev
Log:
Get test working on Windows that doesn't like ':' in file names.
Modified:
tomcat/tc8.5.x/trunk/test/org/apache/juli/TestFileHandler.java
Modified: tomcat/tc8.5.x/trunk/test/org/apache/juli/TestFileHandler.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.5.x/trunk/test/org/apache/juli/TestFileHandler.java?rev=1799286&r1=1799285&r2=1799286&view=diff
==============================================================================
--- tomcat/tc8.5.x/trunk/test/org/apache/juli/TestFileHandler.java (original)
+++ tomcat/tc8.5.x/trunk/test/org/apache/juli/TestFileHandler.java Mon Jun 19 22:21:26 2017
@@ -59,7 +59,7 @@ public class TestFileHandler {
Calendar date = Calendar.getInstance();
date.add(Calendar.DAY_OF_MONTH, -3);
- SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
+ SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH-mm-ss.SSS");
File file = new File(logsDir, PREFIX_1 + formatter.format(date.getTime()) + SUFIX_1);
file.createNewFile();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org