Refactor ReceiveMessageHandler

Introduce PlainTextWriter to improve indentation handling.
This commit is contained in:
AsamK 2021-02-20 19:22:36 +01:00
parent 6c33a89f82
commit 03c30519b1
6 changed files with 641 additions and 507 deletions

View file

@ -14,7 +14,7 @@ public class DateUtils {
public static String formatTimestamp(long timestamp) {
Date date = new Date(timestamp);
final DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); // Quoted "Z" to indicate UTC, no timezone offset
final DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSX"); // Quoted "Z" to indicate UTC, no timezone offset
df.setTimeZone(tzUTC);
return timestamp + " (" + df.format(date) + ")";
}