zan-mateusz opened a new pull request, #1386:
URL: https://github.com/apache/brooklyn-server/pull/1386

   Problem with test and one of the assertions in a different timezone.
   
   `Assert.assertEquals(Time.makeDateStampStringZ(instant), "20200101-1200Z");` 
- that is the problematic one - `Time.makeDateStampStringZ` as per its 
annotation should represent time in the UTC zone, however it calls 
`makeDateStampString` which uses `SimpleDateFormat` from `Date` which is aware 
of the timezone and uses default timezone, therefore returning time in current 
zone rather than UTC. Given the above, I have implemented another function 
`makeDateStampStringZ` that sets the timezone in SimpleDateFormat to be UTC 
which solves the issue  (in summary, we didn't set the UTC timezone where we 
expected to have it)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to