ISO8601 compatible timestamps in log output

This fixes #699.

**Warning:** this change breaks with backward compatibility,
e.g. for log parsing tool chains.
This commit is contained in:
Marcus Jaschen 2024-05-15 07:59:18 +02:00
parent 8270ae6638
commit 4e858f5e49
2 changed files with 22 additions and 1 deletions

View file

@ -59,7 +59,7 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
if (e != null) e.terminate();
}
private static DateFormat tsFormat = new SimpleDateFormat("dd.MM.yy HH:mm", new Locale("en", "US"));
private static DateFormat tsFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX", new Locale("en", "US"));
private static String formattedTimeStamp(long t) {
synchronized (tsFormat) {