From a7f919e73e16be19048a49fe285f41220cac985f Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Thu, 24 May 2012 01:54:21 -0400 Subject: [PATCH] lib: fixed RecurBase class's Dump output, to use decimal numbers --- src/r_recur_base.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/r_recur_base.cc b/src/r_recur_base.cc index 22417b2d..e3b40e93 100644 --- a/src/r_recur_base.cc +++ b/src/r_recur_base.cc @@ -26,6 +26,7 @@ #include "time.h" #include "ios_state.h" #include +#include #define __DEBUG_MODE__ #include "debug.h" @@ -265,6 +266,7 @@ void RecurBase::Dump(std::ostream &os) const case MonthByDate: os << " Every month on the " + << dec << DayOfMonth << (DayOfMonth == 1 ? "st" : "") << (DayOfMonth == 2 ? "nd" : "") @@ -275,6 +277,7 @@ void RecurBase::Dump(std::ostream &os) const case MonthByDay: os << " Every month on the " + << dec << DayNames[DayOfWeek] << " of week " << WeekOfMonth @@ -283,12 +286,14 @@ void RecurBase::Dump(std::ostream &os) const case YearByDate: os << " Every year on " + << dec << MonthNames[MonthOfYear-1] << " " << DayOfMonth << "\n"; break; case YearByDay: os << " Every year in " << MonthNames[MonthOfYear-1] + << dec << " on " << DayNames[DayOfWeek] << " of week " << WeekOfMonth << "\n"; @@ -311,7 +316,7 @@ void RecurBase::Dump(std::ostream &os) const break; } - os << " Interval: " << Interval << "\n"; + os << dec << " Interval: " << Interval << "\n"; if( Perpetual ) os << " Ends: never\n"; -- 2.11.4.GIT