fixed issue #1363 , date format

This commit is contained in:
agapple
2019-01-03 11:48:33 +08:00
parent 3011c3292b
commit b348260288
@@ -160,7 +160,7 @@ public abstract class AbstractRequest<T> {
}
public final String formatUTCTZ(Date date) {
SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-dd'T'HH:mm:ss'Z'");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
return sdf.format(date);
}