AbsoluteDate print method inconsistent with ISO ISO 8601
Hello, I am trying to write AbsoluteDate to file. I am using the “toString” method with various variations (defined zone, defined time scale) but cannot force it to write UTC date with “Z” at the end.
AbsoluteDate date = new AbsoluteDate("2019-10-27T10:00:00.567Z", TimeScalesFactory.getUTC()); System.out.println(date); Output is: 2019-10-27T10:00:00.567
It is not complying with ISO 8601 norm, as :
If no UTC relation information is given with a time representation, the time is assumed to be in local time.
Is there a possibility to write the date correctly without converting to Java time?
Best regards, Piotr
Originally posted: https://forum.orekit.org/t/absolutedate-print-method-and-iso-8601/693