logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remko Popma <remko.po...@gmail.com>
Subject Re: Failures in org.apache.logging.log4j.core.util.datetime.FixedDateFormatTest
Date Mon, 02 Nov 2015 00:30:12 GMT
What is the error message when the test fails?

Sent from my iPhone

> On 2015/11/02, at 9:27, Gary Gregory <garydgregory@gmail.com> wrote:
> 
> Note that we are also not using the latest code from Commons-Lang which has had some
bug fixes since we copied it.
> 
> Gary
> 
>> On Sun, Nov 1, 2015 at 4:11 PM, Remko Popma <remko.popma@gmail.com> wrote:
>> I saw FixedDateFormatTest fail when I was in Holland and had switched my laptop to
use the Amsterdam timezone (but perhaps still using Japanese style date/time formatting).
>> 
>> The test failed with the %d{dd MMM yyyy HH:mm:ss,SSS} (and the %d{DATE}) formats:
>> The FastDateFormat used in FixedDateFormat gave 02 Nov 2015 08:59:59,002,
>> where SimpleDateFormat gave 02 11 2015 08:59:59,002.
>> 
>> So with SimpleDateFormat the month formatted in Japanese style (giving "11" instead
of "Nov").
>> 
>> I fixed FixedDateFormatTest by passing Locale.getDefault() to the SimpleDateFormat
constructor.
>> I am still not 100% sure what happened. Something to do with DateFormatSymbols? 
>> 
>> 
>> 
>>> On Mon, Nov 2, 2015 at 8:17 AM, Gary Gregory <garydgregory@gmail.com> wrote:
>>> So... our users will run into this bug in very specific time frames...?
>>> 
>>> Gary
>>> 
>>>> On Sun, Nov 1, 2015 at 2:55 PM, Matt Sicker <boards@gmail.com> wrote:
>>>> Of course, it could be an actual DST bug.
>>>> 
>>>>> On 1 November 2015 at 16:54, Matt Sicker <boards@gmail.com> wrote:
>>>>> Looks like a DST issue that will work again starting tomorrow after about
2:00am.
>>>>> 
>>>>>> On 1 November 2015 at 16:31, Gary Gregory <garydgregory@gmail.com>
wrote:
>>>>>> Well, it would be good to know what you see.
>>>>>> 
>>>>>> Gary
>>>>>> 
>>>>>>> On Sun, Nov 1, 2015 at 2:02 PM, Ralph Goers <ralph.goers@dslextreme.com>
wrote:
>>>>>>> I could test it but it probably won’t fail for me. Arizona
doesn’t spring forward or fall back.
>>>>>>> 
>>>>>>> Ralph
>>>>>>> 
>>>>>>>> On Nov 1, 2015, at 2:51 PM, Gary Gregory <garydgregory@gmail.com>
wrote:
>>>>>>>> 
>>>>>>>> We have failures in org.apache.logging.log4j.core.util.datetime.FixedDateFormatTest
>>>>>>>> 
>>>>>>>> ... due to DST vs. ST?
>>>>>>>> 
>>>>>>>> Gary
>>>>>>>> 
>>>>>>>> -- 
>>>>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org 
>>>>>>>> Java Persistence with Hibernate, Second Edition
>>>>>>>> JUnit in Action, Second Edition
>>>>>>>> Spring Batch in Action
>>>>>>>> Blog: http://garygregory.wordpress.com 
>>>>>>>> Home: http://garygregory.com/
>>>>>>>> Tweet! http://twitter.com/GaryGregory
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org 
>>>>>> Java Persistence with Hibernate, Second Edition
>>>>>> JUnit in Action, Second Edition
>>>>>> Spring Batch in Action
>>>>>> Blog: http://garygregory.wordpress.com 
>>>>>> Home: http://garygregory.com/
>>>>>> Tweet! http://twitter.com/GaryGregory
>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> Matt Sicker <boards@gmail.com>
>>>> 
>>>> 
>>>> 
>>>> -- 
>>>> Matt Sicker <boards@gmail.com>
>>> 
>>> 
>>> 
>>> -- 
>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org 
>>> Java Persistence with Hibernate, Second Edition
>>> JUnit in Action, Second Edition
>>> Spring Batch in Action
>>> Blog: http://garygregory.wordpress.com 
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
> 
> 
> 
> -- 
> E-Mail: garydgregory@gmail.com | ggregory@apache.org 
> Java Persistence with Hibernate, Second Edition
> JUnit in Action, Second Edition
> Spring Batch in Action
> Blog: http://garygregory.wordpress.com 
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

Mime
View raw message