Skip to content

Commit

Permalink
fixed ci unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
k3b committed Dec 2, 2023
1 parent 94fbcdc commit 9e0a1b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/test/java/de/k3b/calef/CalendarFormatterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public class CalendarFormatterTest {

@BeforeClass
public static void init() {
TimeZone.setDefault(TimeZone.getTimeZone("CET"));
// fix failing on buildserver (from https://stackoverflow.com/questions/6981890/new-datelong-gives-different-results )
TimeZone.setDefault(TimeZone.getTimeZone("CET")); // works inside android-studio
System.setProperty("user.timezone", "CET"); // works on commandline runner
}

@Test
Expand Down

0 comments on commit 9e0a1b4

Please sign in to comment.