Skip to content

Commit 04f933b

Browse files
committed
[hsqldb] Add in GMT for time zone so time resolves out properly
1 parent 6c3eb27 commit 04f933b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/org/apache/ibatis/submitted/localtime/LocalTimeTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import java.io.Reader;
2121
import java.time.LocalTime;
22+
import java.util.TimeZone;
2223

2324
import org.apache.ibatis.BaseDataTest;
2425
import org.apache.ibatis.io.Resources;
@@ -52,6 +53,7 @@ void shouldSelectLocalTimeWithNanoseconds() {
5253

5354
@Test
5455
void shouldInsertLocalTimeWithNanoseconds() {
56+
TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
5557
LocalTime t = LocalTime.of(11, 22, 33, 123456789);
5658
try (SqlSession sqlSession = sqlSessionFactory.openSession()) {
5759
Mapper mapper = sqlSession.getMapper(Mapper.class);

0 commit comments

Comments
 (0)