From 3ed2536aae70188fb6c7f20ff7a6a8ab7dfbba80 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 6 Aug 2018 20:25:55 +1200 Subject: Fix hours formatting --- test/org/traccar/calendar/CalendarTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/org/traccar/calendar/CalendarTest.java b/test/org/traccar/calendar/CalendarTest.java index 0de89f97f..56406d4b8 100644 --- a/test/org/traccar/calendar/CalendarTest.java +++ b/test/org/traccar/calendar/CalendarTest.java @@ -44,7 +44,7 @@ public class CalendarTest { "END:VCALENDAR"; Calendar calendar = new Calendar(); calendar.setData(calendarString.getBytes()); - DateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ssX"); + DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ssX"); Date date = format.parse("2016-12-13 22:59:59+05"); assertTrue(!calendar.checkMoment(date)); -- cgit v1.2.3