wso2 / balana

Apache License 2.0
122 stars 108 forks source link

Test case showing different behavior when running in certain timezone #154

Closed polohan closed 2 years ago

polohan commented 2 years ago

Description:

The test ConformanceTestV2.testConformanceTestC's IIC103 case will fail when running in a region that has a different timezone at 2001-01-22T08:23:47-05:00 and at 2002-03-22T08:23:47-05:00. For example, the Pacific/Chatham timezone, whose timezone changed from CHADT to CHAST on Mar 17 at 3:45 am in 2002. So while it's still in CHADT on 2001-01-22, it's in CHAST on 2002-03-22.

This is creating an off-by-one-hour error in the test and ultimately causing the test ConformanceTestV2.testConformanceTestC to fail.

Steps to reproduce:

Simply run TZ=Pacific/Chatham mvn test