Here you can find the source of uTCToChinaTS(Date date)
public static Date uTCToChinaTS(Date date)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { public static Date uTCToChinaTS(Date date) { Calendar ca = Calendar.getInstance(); ca.setTime(date);/*from w w w . ja v a 2 s. c o m*/ ca.add(Calendar.HOUR, 8); return ca.getTime(); //long localTime = date.getTime() + 1000 * 60 * 60 * 8; //Date localDateTime = new Date(localTime); //return localDateTime; } }