[Bast-commits] r9023 -
ironman/IronMan-Schema/lib/IronMan/Schema/ResultSet
idn at dev.catalyst.perl.org
idn at dev.catalyst.perl.org
Wed Mar 17 22:59:41 GMT 2010
Author: idn
Date: 2010-03-17 22:59:41 +0000 (Wed, 17 Mar 2010)
New Revision: 9023
Modified:
ironman/IronMan-Schema/lib/IronMan/Schema/ResultSet/Post.pm
Log:
Don't subtract a second, leave it at the start of the next day
Modified: ironman/IronMan-Schema/lib/IronMan/Schema/ResultSet/Post.pm
===================================================================
--- ironman/IronMan-Schema/lib/IronMan/Schema/ResultSet/Post.pm 2010-03-17 22:21:28 UTC (rev 9022)
+++ ironman/IronMan-Schema/lib/IronMan/Schema/ResultSet/Post.pm 2010-03-17 22:59:41 UTC (rev 9023)
@@ -20,7 +20,7 @@
my $day_start = $dt_day->clone()->truncate( 'to' => 'day');
- my $day_end = $day_start->clone()->add( 'days' => 1 )->subtract( 'seconds' => 1 );
+ my $day_end = $day_start->clone()->add( 'days' => 1 ); # ->subtract( 'seconds' => 1 );
return $self->posts_for_daterange($day_start, $day_end);
}
More information about the Bast-commits
mailing list