提交 129eb733 编写于 作者: X XuYi

simlpe code

上级 7f6484ce
......@@ -160,16 +160,15 @@ public abstract class AbstractClient {
}
private static String formatDatetime(long timestamp) {
DateTime dateTime = new DateTime(timestamp, timeZone);
switch (timeFormat) {
case "long":
case "number":
return timestamp+"";
case "default":
case "ISO8601":
return dateTime.toString(ISODateTimeFormat.dateHourMinuteSecondMillis());
return new DateTime(timestamp, timeZone).toString(ISODateTimeFormat.dateHourMinuteSecondMillis());
default:
return dateTime.toString(timeFormat);
return new DateTime(timestamp, timeZone).toString(timeFormat);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册