package org.lxp.dailylog.util;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;

import org.junit.Assert;
import org.junit.Test;

public class DateUtilTest {
    @Test
    public void testNow() {
        Assert.assertNotNull(DateUtil.now());
    }

    @Test
    public void testFormat() throws Exception {
        LocalDateTime localDate = LocalDateTime.of(2018, 05, 10, 0, 0, 10);
        Assert.assertEquals("2018-05-10T13:00:10+08:00[Asia/Shanghai]",
                DateUtil.format(ZonedDateTime.of(localDate, ZoneId.systemDefault())));
    }

}

@@ -461,10 +461,10 @@
 -10T
-13
+00
 :00:
@@ -560,22 +560,26 @@
 eId.
-systemDefault(
+of(%22Asia/Shanghai%22
 ))))

modify DateUtilTest