Fix time zone issue.
This commit is contained in:
parent
7d9f0db359
commit
7137b849ca
|
|
@ -18,13 +18,26 @@
|
|||
|
||||
package org.skywalking.apm.collector.core.util;
|
||||
|
||||
import java.util.TimeZone;
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author wu-sheng
|
||||
*/
|
||||
public class TimeBucketUtilsTest {
|
||||
@Before
|
||||
public void setup() {
|
||||
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
|
||||
}
|
||||
|
||||
@After
|
||||
public void teardown() {
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetInfoFromATimestamp() {
|
||||
long timeMillis = 1509521745220L;
|
||||
|
|
|
|||
Loading…
Reference in New Issue