[ 
https://issues.apache.org/jira/browse/LOG4J2-2805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056575#comment-17056575
 ] 

Ralph Goers commented on LOG4J2-2805:
-------------------------------------

The fix for this uses java.time. The java.time classes are explicitly not 
garbage free - almost every operation creates a new immutable object.  I will 
try to retrofit this using Calendar but that is going to be hard.

> TimeFilter does not handle daylight saving time transitions
> -----------------------------------------------------------
>
>                 Key: LOG4J2-2805
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2805
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Filters
>    Affects Versions: 2.13.1
>            Reporter: Ralph Goers
>            Priority: Major
>
> The TimeFilter unit test failed miserably on March 8 which was the beginning 
> of daylight saving time. Looking at the code for the TimeFilter and the tests 
> both were overly simplistic and not testing for things like setting a start 
> time in one day with the end time in the next or having the time range 
> overlap the daylight saving time transitions in the spring and fall.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to