logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shishir chaturvedi (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LOG4J2-1849) Broken FixedDateFormat tests when daylight saving time starts
Date Wed, 15 Mar 2017 15:57:41 GMT

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

shishir chaturvedi edited comment on LOG4J2-1849 at 3/15/17 3:57 PM:
---------------------------------------------------------------------

Matt, we are the blessed ones. :-) 

Remko, I am in EST. My DST test case should use timezone to get calendar instance. Hope this
will help.
{code}
 final Calendar instance = Calendar.getInstance(TimeZone.getTimeZone("America/New_York"));
or 
final Calendar instance = Calendar.getInstance(TimeZone.getTimeZone("EST"));
{code}        




was (Author: shishirchaturvedi):
Matt, we are the blessed ones. :-) 

Remko, I am in EST. My DST test case should use timezone to get calendar instance.
{code}
 final Calendar instance = Calendar.getInstance(TimeZone.getTimeZone("America/New_York"));
or 
final Calendar instance = Calendar.getInstance(TimeZone.getTimeZone("EST"));
{code}        



> Broken FixedDateFormat tests when daylight saving time starts
> -------------------------------------------------------------
>
>                 Key: LOG4J2-1849
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1849
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.8.1
>            Reporter: Matt Sicker
>            Assignee: Remko Popma
>
> Today we started daylight saving time in the US, and the following tests failed:
> {noformat}
> Failed tests:
>   FixedDateFormatTest.testFormatLong:162 ABSOLUTE(HH:mm:ss,SSS)/1489305608119 expected:<0[3]:00:08,119>
but was:<0[2]:00:08,119>
>   FixedDateFormatTest.testFormatLongCharArrayInt:196 ABSOLUTE(HH:mm:ss,SSS)/1489305607930
expected:<0[3]:00:07,930> but was:<0[2]:00:07,930>
>   FixedDateFormatTest.testFormatLongCharArrayInt_goingBackInTime:214 ABSOLUTE(HH:mm:ss,SSS)/1489381194091
expected:<2[3]:59:54,091> but was:<2[2]:59:54,091>
>   FixedDateFormatTest.testFormatLong_goingBackInTime:178 ABSOLUTE(HH:mm:ss,SSS)/1489381194072
expected:<2[3]:59:54,072> but was:<2[2]:59:54,072>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message