You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2020/01/09 07:19:24 UTC
[wicket] branch master updated: Since recently ZonedDateTime uses
UTC instead of UCT as a timezone.
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/master by this push:
new 65ce5d5 Since recently ZonedDateTime uses UTC instead of UCT as a timezone.
65ce5d5 is described below
commit 65ce5d57833e683e5381f7fcd64709f8c19b3b21
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Thu Jan 9 09:17:59 2020 +0200
Since recently ZonedDateTime uses UTC instead of UCT as a timezone.
Update ZonedDateTimeConverterTest to respect that.
---
.../util/convert/converter/ZonedDateTimeConverterTest.java | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/wicket-util/src/test/java/org/apache/wicket/util/convert/converter/ZonedDateTimeConverterTest.java b/wicket-util/src/test/java/org/apache/wicket/util/convert/converter/ZonedDateTimeConverterTest.java
index 771175c..ad6f782 100644
--- a/wicket-util/src/test/java/org/apache/wicket/util/convert/converter/ZonedDateTimeConverterTest.java
+++ b/wicket-util/src/test/java/org/apache/wicket/util/convert/converter/ZonedDateTimeConverterTest.java
@@ -42,17 +42,8 @@ public class ZonedDateTimeConverterTest
assertEquals(date, "Jul 11, 2016, 1:02:03 AM Coordinated Universal Time");
}
- @EnabledOnJre({JRE.JAVA_11, JRE.JAVA_12})
@Test
- public void convertToObject_java12Minus() {
- ZonedDateTimeConverter converter = new ZonedDateTimeConverter();
- ZonedDateTime date = converter.convertToObject("Jul 11, 2016, 1:02:03 AM Coordinated Universal Time", Locale.ENGLISH);
- assertEquals(ZonedDateTime.of(2016, 7, 11, 1, 2, 3, 0, zoneUCT), date);
- }
-
- @EnabledOnJre({JRE.JAVA_13})
- @Test
- public void convertToObject_java13Plus() {
+ public void convertToObject() {
ZonedDateTimeConverter converter = new ZonedDateTimeConverter();
ZonedDateTime date = converter.convertToObject("Jul 11, 2016, 1:02:03 AM Coordinated Universal Time", Locale.ENGLISH);
assertEquals(ZonedDateTime.of(2016, 7, 11, 1, 2, 3, 0, zoneUTC), date);