road0001 / as3syndicationlib

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

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In RSS10Test, the following fail:

testChannel - expected:<Thu Sep 15 13:00:00 GMT-0400 2005> but was:<Thu Sep
15 10:00:00 GMT-0700 2005>
testItems - expected:<Sat Oct 15 13:00:00 GMT-0400 2005> but was:<Sat Oct
15 10:00:00 GMT-0700 2005>

In Atom10Test, the following fail:

testEntries - expected:<Thu Jan 19 07:00:00 GMT-0500 2006> but was:<Thu Jan
19 04:00:00 GMT-0800 2006>
testFeedData - expected:<Fri Jan 20 07:00:00 GMT-0500 2006> but was:<Fri
Jan 20 04:00:00 GMT-0800 2006>

You can see that the dates are all actually the same, but me being in the
Eastern Time Zone throws off the "toString()" output from the date
instances which causes the tests to fail.  The date comparisons need to be
done differently so that they don't rely on toString().

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

GoogleCodeExporter commented 8 years ago
Fixed in revision 11

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