mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #1363 , date format
This commit is contained in:
@@ -160,7 +160,7 @@ public abstract class AbstractRequest<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final String formatUTCTZ(Date date) {
|
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"));
|
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||||
return sdf.format(date);
|
return sdf.format(date);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user