好记性不如烂笔头, 记录一下.
private String getBJTime(String pattern) {
Date date = new Date(System.currentTimeMillis());
SimpleDateFormat dateFormat = new SimpleDateFormat(pattern);
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT+8"));
String BeijingTime = dateFormat.format(date);
LogUtil.i(TAG+ " beijing: %s", BeijingTime);
return BeijingTime;
}