From fc7355c69eeab8334ea066a434476d227e9dc399 Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Mon, 9 Apr 2018 10:51:51 +0700 Subject: Fixed toCalendar method of TimeOfDay class --- src/test/scala/xyz/driver/core/TimeTest.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test') diff --git a/src/test/scala/xyz/driver/core/TimeTest.scala b/src/test/scala/xyz/driver/core/TimeTest.scala index b72fde8..5552a7d 100644 --- a/src/test/scala/xyz/driver/core/TimeTest.scala +++ b/src/test/scala/xyz/driver/core/TimeTest.scala @@ -74,6 +74,9 @@ class TimeTest extends FlatSpec with Matchers with Checkers { } it should "have correct textual representations" in { + import java.util.Locale + import java.util.Locale._ + Locale.setDefault(US) textualDate(TimeZone.getTimeZone("EDT"))(Time(1468937089834L)) should be("July 19, 2016") textualTime(TimeZone.getTimeZone("PDT"))(Time(1468937089834L)) should be("Jul 19, 2016 02:04:49 PM") -- cgit v1.2.3