|
@@ -15,6 +15,8 @@ |
|
|
*/ |
|
|
*/ |
|
|
package com.alibaba.csp.sentinel.eagleeye; |
|
|
package com.alibaba.csp.sentinel.eagleeye; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.TimeZone; |
|
|
|
|
|
|
|
|
import org.junit.Assert; |
|
|
import org.junit.Assert; |
|
|
import org.junit.Rule; |
|
|
import org.junit.Rule; |
|
|
import org.junit.Test; |
|
|
import org.junit.Test; |
|
@@ -153,8 +155,8 @@ public class EagleEyeCoreUtilsTest { |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void testFormatTime() { |
|
|
public void testFormatTime() { |
|
|
Assert.assertEquals("2019-06-15 20:13:14.000", |
|
|
|
|
|
EagleEyeCoreUtils.formatTime(1560600794000L)); |
|
|
|
|
|
|
|
|
Assert.assertEquals("2019-06-15 12:13:14.000", |
|
|
|
|
|
EagleEyeCoreUtils.formatTime(1560600794000L - TimeZone.getDefault().getRawOffset())); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|