Introduction
Introduction Statistics Contact Development Disclaimer Help
compare date objects directly instead of converting them to strings. This fixes…
Log
Files
Refs
README
---
commit b3aba348ac6681628df83c23f0ac038daac16a69
parent 1d774153ecd40e3bc00bb6e0ac18501bdf9350b2
Author: Lars Kuhnt <[email protected]>
Date: Mon, 26 Apr 2010 19:00:55 +0200
compare date objects directly instead of converting them to strings. This fixes…
Diffstat:
M lib/saulabs/reportable/reporting_p… | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/saulabs/reportable/reporting_period.rb b/lib/saulabs/reportabl…
@@ -111,7 +111,7 @@ module Saulabs
#
def ==(other)
if other.is_a?(Saulabs::Reportable::ReportingPeriod)
- @date_time.to_s == other.date_time.to_s && @grouping.identifier.to_s…
+ @date_time == other.date_time && @grouping.identifier.to_s == other.…
elsif other.is_a?(Time) || other.is_a?(DateTime)
@date_time == parse_date_time(other)
else
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.