From c3090fb9bf1c2f909bb75aed03aecb7c9dc9d970 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Thu, 26 Dec 2024 08:22:53 -0500 Subject: [PATCH] Update comment --- .../commons/validator/routines/CalendarValidatorTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/validator/routines/CalendarValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/CalendarValidatorTest.java index 59560b0fe..85ba54bcc 100644 --- a/src/test/java/org/apache/commons/validator/routines/CalendarValidatorTest.java +++ b/src/test/java/org/apache/commons/validator/routines/CalendarValidatorTest.java @@ -273,8 +273,9 @@ protected Object processParsedValue(final Object value, final Format formatter) @Test public void testFormat() { Locale.setDefault(Locale.UK); - //Calendar cal20051231 = Calendar.getInstance(GMT); - //cal20051231.setTimeInMillis(Instant.parse("2005-12-31T10:01:15.00Z").toEpochMilli()); + // final Calendar cal20051231 = Calendar.getInstance(GMT); + // set as UTC milliseconds from the epoch + // cal20051231.setTimeInMillis(Instant.parse("2005-12-31T01:15:00.00Z").toEpochMilli()); final Calendar cal20051231 = createCalendar(GMT, 20051231, 11500); // validator defaults to SHORT, but the format varies between JVMs final DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);