DateTime and Test::MockTime

2008-08-28 Thread Mark Pitchless
Hello All, For some reason using DateTime-now doesn't get effected by using the Test::MockTime module to change the time. The Test module overrides the time builtin, which seems to be what DateTime::now is using. #!/usr/bin/perl use DateTime; use Test::MockTime qw/:all/; my $start_time

Re: DateTime and Test::MockTime

2008-08-28 Thread Zefram
Mark Pitchless wrote: For some reason using DateTime-now doesn't get effected by using the Test::MockTime module to change the time. It does if you load Test::MockTime before you load DateTime. $ perl -MDateTime -MTest::MockTime=:all -lwe 'print time;print