kahntang / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

Unit tests fails when timezone is not US-Pacific #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following unit tests are currently failing:

testParseW3CDTF
testParseW3CDTFWithMilliseconds
testParseRFC822

The reason that they're failing is because I'm running the test harness in
Eastern time, when the author wrotes the tests in Pacific time.  The Date
object returned by the parse methods is correct, but the "hours" property
is not the same because the timezone offset factors into that value.

To fix, the hours comparison needs to factor in the time zone offset to
avoid erroneous test failures.

Original issue reported on code.google.com by darron.schall on 15 Jan 2007 at 9:11

GoogleCodeExporter commented 9 years ago
Fixed in revision 20

Original comment by darron.schall on 15 Jan 2007 at 9:51