mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-03-07 17:36:52 +08:00
fix: test.
This commit is contained in:
parent
08d6b58c8c
commit
edd89fb040
@ -4,6 +4,7 @@ import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZoneOffset;
|
||||
|
||||
public class DateTypeAdapterTest {
|
||||
@ -22,7 +23,7 @@ public class DateTypeAdapterTest {
|
||||
|
||||
Assert.assertEquals(
|
||||
LocalDateTime.of(2021, 1, 3, 0, 53, 34)
|
||||
.atOffset(ZoneOffset.UTC).toInstant(),
|
||||
.atZone(ZoneId.systemDefault()).toInstant(),
|
||||
DateTypeAdapter.deserializeToDate("2021-01-03T00:53:34").toInstant());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user