[ 
https://issues.apache.org/jira/browse/KAFKA-14836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luke Chen updated KAFKA-14836:
------------------------------
    Fix Version/s: 3.4.1

> Fix UtilsTest#testToLogDateTimeFormat failure in some cases
> -----------------------------------------------------------
>
>                 Key: KAFKA-14836
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14836
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Tamas Barnabas Egyed
>            Assignee: Tamas Barnabas Egyed
>            Priority: Major
>             Fix For: 3.5.0, 3.4.1
>
>
>  
> {code:java}
> org.apache.kafka.common.utils.UtilsTest.testToLogDateTimeFormat {code}
> test is failing in some cases. It uses hard coded datetime ({*}2020-11-09 
> 12:34:05{*}), while the assertation expected part contains the offset of the 
> current time ({*}Instant.now(){*}). This can lead to problems if there is a 
> summer and winter time for the specific location. We should use the same 
> datetime in the offset query instead of the current time.
> {noformat}
> org.opentest4j.AssertionFailedError: expected: <2020-11-09 12:34:05,123 
> -07:00> but was: <2020-11-09 12:34:05,123 -08:00>{noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to