]> source.dussan.org Git - aspectj.git/commitdiff
Set explicit en_US locale for build timestamps in Build Helper Maven
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Sun, 21 Mar 2021 10:42:34 +0000 (17:42 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sun, 21 Mar 2021 10:42:34 +0000 (17:42 +0700)
There were warnings that builds were dependent on the system local
(de_DE in my case). In patterns like "EEEE MMM d, yyyy", parts like day
of week or month names would change otherwise.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
bridge/pom.xml
build/pom.xml

index eae496e79978c4bead683a968bf4f8487a5879d0..2ab25be17f4b90abe769e73e63b3a014dc3700e9 100644 (file)
@@ -37,6 +37,7 @@
                                                        <name>version.time_text</name>
                                                        <pattern>EEEE MMM d, yyyy 'at' HH:mm:ss z</pattern>
                                                        <timeZone>America/Los_Angeles</timeZone>
+                                                       <locale>en_US</locale>
                                                        <!-- build.time: Monday Feb 4, 2019 at 23:50:25 GMT -->
                                                </configuration>
                                        </execution>
index f486bb1d5b76e94a725c46817ac3746c38e732d2..61610af7d05c31d2fd72ff142364c98b4687a8d3 100644 (file)
@@ -44,9 +44,9 @@
                                                <configuration>
                                                        <name>build.date</name>
                                                        <pattern>E MMM d, YYYY</pattern>
-                                                       <timeZone>Europe/Zurich</timeZone>
-                                                       <!-- build.date: Monday Feb 4, 2019 -->
                                                        <timeZone>America/Los_Angeles</timeZone>
+                                                       <locale>en_US</locale>
+                                                       <!-- build.date: Monday Feb 4, 2019 -->
                                                </configuration>
                                        </execution>
                                        <execution>
                                                </goals>
                                                <configuration>
                                                        <name>build.time</name>
-                                                       <!-- 
+                                                       <!--
                                                        <pattern>E MMM d, YYYY 'at' HH:MM:SS z</pattern>
                                                         -->
                                                        <pattern>EEEE MMM d, yyyy 'at' HH:mm:ss z</pattern>
                                                        <timeZone>America/Los_Angeles</timeZone>
+                                                       <locale>en_US</locale>
                                                        <!-- build.time: Monday Feb 4, 2019 at 23:50:25 GMT -->
                                                </configuration>
                                        </execution>
@@ -73,6 +74,7 @@
                                                        <name>build.year</name>
                                                        <pattern>YYYY</pattern>
                                                        <timeZone>America/Los_Angeles</timeZone>
+                                                       <locale>en_US</locale>
                                                        <!-- year: 2019 -->
                                                </configuration>
                                        </execution>