Commit 7137b849 authored by 吴晟's avatar 吴晟
Browse files

Fix time zone issue.

parent 7d9f0db3
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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;