@Override
    public JsonElement serialize(Instant t, Type type, JsonSerializationContext jsc) {
        return new JsonPrimitive(serializeToString(t, ZoneId.systemDefault()));
    }
@Test
    public void testSerialize() {
        assertEquals(
                "2024-02-13T15:11:06+08:00",
                InstantTypeAdapter.serializeToString(Instant.ofEpochMilli(1707808266154L), ZoneOffset.ofHours(8))
        );
    }