Skip Menu |

This queue is for tickets about the DBIx-Class-TimeStamp CPAN distribution.

Report information
The Basics
Id: 57746
Status: resolved
Priority: 0/
Queue: DBIx-Class-TimeStamp

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.12
Fixed in: (no value)



Subject: DateTime objects compare at the nanosecond level
DateTime objects compare with each other at the nanosecond level. This means the following test code does not really work. is $row->t_updated, $row->t_created, 'update and create timestamp'; Test::More 0.96 will no longer stringify its arguments before comparing, this was considered a bug. Apologies for the inconvenience. This reveals string overloaded objects which do not implement a comparison operator, which is generally an oversight rather than a feature. Test with Test::More 0.95_02 and release ASAP. Test::More 0.96 is holding off until all affected modules are informed. The fact that these two times are different at all reveals that the test's attempts at freezing time is not actually working. The test will eventually fail regardless of Test::More changes because the created and update times cross a second boundary.
This has been long fixed in 0.13