DaanHoogland commented on issue #2893: ApiServer: signature v3 to accept more formats URL: https://github.com/apache/cloudstack/pull/2893#issuecomment-435891242 @bwsw a quick hack of mine: ``` @Test public void zonedTimeFormatIsoNoColonZMs() throws ParseException { Date time = new Date(); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSSZ"); String str = OffsetDateTime.of(time.getYear(),time.getMonth(),time.getDay(),time.getHours(),time.getMinutes(),time.getSeconds(),0,ZoneOffset.ofHours(time.getTimezoneOffset())).format(formatter); Date dtParsed = DateUtil.parseTZDateString(str); assertEquals(str, time.toString(), dtParsed.toString()); } ``` ugly quick hack but should do what is intended without losing test quality or time skew bug as you reported. thoughts?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
