DaanHoogland commented on issue #2893: ApiServer: signature v3 to accept more 
formats
URL: https://github.com/apache/cloudstack/pull/2893#issuecomment-435901833
 
 
   strangely this works:
   ```
       @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()+1900,time.getMonth()+1,time.getDate(),time.getHours(),time.getMinutes(),time.getSeconds(),0,ZoneOffset.ofHours(-1*time.getTimezoneOffset()/60)).format(formatter);
   
           Date dtParsed = DateUtil.parseTZDateString(str);
   
           assertEquals(str, time.toString(), dtParsed.toString());
       }
   ```
   not sure if it is valid in all cases though, can you test @bwsw 
   @nvazquez could you test from the western hemisphere, please?

----------------------------------------------------------------
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

Reply via email to