function randerStartTime(time) {
//算出时差,并转换为毫秒:
var offset = (new Date().getTimezoneOffset() * 60 * 1000) / 8;
//算出现在的时间:
var nowDate = new Date(time).getTime();
//算出对应的格林尼治时间
var GMTDate = new Date(nowDate + offset);//Wed Apr 20 2016 22:27:02 GMT+0800 (CST)
//转换成本地时间格式
var GMTDateInLocalString = GMTDate.toLocaleString();//2016/4/20 下午10:27:02
return GMTDateInLocalString
}
time 为格林威治时间