Skip to content

Commit 19dcdca

Browse files
committed
fix(mailextractlib): emove UTC timezone overriding
BREAKING changes: * removes UTC timezone set into mailextractlib * update workflow to setup Europe/Paris timezone in CI
1 parent 152613f commit 19dcdca

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: Build and Run Tests
2222
run: mvn --settings .ci/github-actions-settings.xml verify
2323
env:
24+
JAVA_TOOL_OPTIONS: "-Duser.timezone=Europe/Paris"
2425
SERVICE_NEXUS_URL: ${{ secrets.SERVICE_NEXUS_URL }}
2526
CI_USR: ${{ secrets.CI_USR }}
2627
CI_PSW: ${{ secrets.CI_PSW }}

mailextractlib/src/main/java/fr/gouv/vitam/tools/mailextractlib/core/StoreExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public static void initDefaultExtractors(boolean allowsExternalToolsForTextExtra
305305
* UTC dates everywhere. This is important for consistency across
306306
* different systems and timezones.
307307
*/
308-
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
308+
// TimeZone.setDefault(TimeZone.getTimeZone("UTC")); // Ca flingue la configuration de la JVM dans les sous produits !
309309
}
310310

311311
private static void preventExternalToolsForTextExtractionInTika() {

mailextractlib/src/test/resources/msg/results/embeddedMail.eml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Date: Mon, 19 Aug 2019 21:18:50 +0000 (UTC)
1+
Date: Mon, 19 Aug 2019 23:18:50 +0200 (CEST)
22
From: "Test" <test@programmevitam.fr>
33
To: <test-a@programmevitam.fr>
44
Message-ID: <003e01d556d3$b3116ed0$19344c70$@programmevitam.fr>

mailextractlib/src/test/resources/msg/results/mail.eml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Date: Mon, 19 Aug 2019 21:30:50 +0000 (UTC)
1+
Date: Mon, 19 Aug 2019 23:30:50 +0200 (CEST)
22
From: "Test" <test@programmevitam.fr>
33
To: <test-a@programmevitam.fr>,<test-b@programmevitam.fr>
44
Message-ID: <000c01d556d5$611cfc50$2356f4f0$@programmevitam.fr>
@@ -72,7 +72,7 @@ div.WordSection1
7272
Content-Type: message/rfc822; name="Test message 1.eml"
7373
Content-Disposition: attachment; filename="Test message 1.eml"
7474

75-
Date: Mon, 19 Aug 2019 21:18:50 +0000 (UTC)
75+
Date: Mon, 19 Aug 2019 23:18:50 +0200 (CEST)
7676
From: "Test" <test@programmevitam.fr>
7777
To: <test-a@programmevitam.fr>
7878
Message-ID: <003e01d556d3$b3116ed0$19344c70$@programmevitam.fr>

mailextractlib/src/test/resources/pst/results/mail.eml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Date: Mon, 19 Aug 2019 21:30:50 +0000 (UTC)
1+
Date: Mon, 19 Aug 2019 23:30:50 +0200 (CEST)
22
From: "Test" <test@programmevitam.fr>
33
To: <test-a@programmevitam.fr>,<test-b@programmevitam.fr>
44
Message-ID: <000c01d556d5$611cfc50$2356f4f0$@programmevitam.fr>
@@ -71,7 +71,7 @@ div.WordSection1
7171
Content-Type: message/rfc822; name="Test message 1.eml"
7272
Content-Disposition: attachment; filename="Test message 1.eml"
7373

74-
Date: Mon, 19 Aug 2019 21:18:50 +0000 (UTC)
74+
Date: Mon, 19 Aug 2019 23:18:50 +0200 (CEST)
7575
From: "Test" <test@programmevitam.fr>
7676
To: <test-a@programmevitam.fr>
7777
Message-ID: <003e01d556d3$b3116ed0$19344c70$@programmevitam.fr>

0 commit comments

Comments
 (0)