You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/04/04 18:09:34 UTC

[maven-integration-testing] branch master updated: Fix MNG-828

This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git


The following commit(s) were added to refs/heads/master by this push:
     new 46836a21e Fix MNG-828
46836a21e is described below

commit 46836a21ec02ed131abb84d1169d2118ea2dfc12
Author: Gabriel Belingueres <be...@gmail.com>
AuthorDate: Sun Apr 3 19:37:30 2022 -0300

    Fix MNG-828
    
    * Make datetime parsing Locale independent.
---
 .../apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java
index 0d9342676..a1eeec61c 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java
@@ -22,6 +22,7 @@ package org.apache.maven.it;
 import java.io.File;
 import java.text.SimpleDateFormat;
 import java.util.Date;
+import java.util.Locale;
 
 import org.apache.maven.it.util.ResourceExtractor;
 import org.apache.maven.shared.utils.io.FileUtils;
@@ -71,7 +72,7 @@ public class MavenITmng0828PluginConfigValuesInDebugTest
         checkLog( log, "[DEBUG]   (f) byteParam = 42" );
         checkLog( log, "[DEBUG]   (f) characterParam = X" );
 
-        Date date = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss.S a" ).parse( "2008-11-09 11:59:03.0 AM" );
+        Date date = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss.S a", Locale.US ).parse( "2008-11-09 11:59:03.0 AM" );
         checkLog( log, "[DEBUG]   (f) dateParam = " + date );
 
         checkLog( log, "[DEBUG]   (f) defaultParam = maven-core-it" );