summaryrefslogtreecommitdiff
path: root/app/src/test/java/se
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2022-11-22 16:37:59 +0100
committercyberta <cyberta@riseup.net>2022-11-22 16:37:59 +0100
commit2d20c8e269a502945e981662abe1f7818090a618 (patch)
treedd7e8ff7d0867791b119f7fe92f72c8fd7c47660 /app/src/test/java/se
parent7fb33a023010f5fd4430486a421306caf3142d42 (diff)
improve pattern matching for getFormattedDateWithTimezone() test
Diffstat (limited to 'app/src/test/java/se')
-rw-r--r--app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java b/app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java
index 3d38cb8a..2651a64d 100644
--- a/app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java
+++ b/app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java
@@ -11,7 +11,7 @@ public class DateHelperTest {
@Test
public void getFormattedDateWithTimezone() {
- Pattern datePattern = Pattern.compile("^10 Nov 22 11:26 [+-][0-9]{4}$");
+ Pattern datePattern = Pattern.compile("^10 Nov 22 [1]?[0-9]:26 [+-][0-9]{4}$");
String formattedDate = DateHelper.getFormattedDateWithTimezone(1668075969744L);
Matcher matcher = datePattern.matcher(formattedDate);
System.out.println(formattedDate);