From 925597a0ff2d899bece416ae144255b9bd06d2d2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 4 Apr 2008 18:30:36 +0000 Subject: Fixed #36: -e wasn't parsing the passed in date correctly. --- option.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/option.cc b/option.cc index ceedd519..25ce09f1 100644 --- a/option.cc +++ b/option.cc @@ -482,17 +482,17 @@ OPT_BEGIN(begin, "b:") { OPT_BEGIN(end, "e:") { char buf[128]; interval_t interval(optarg); - if (! interval.end) + if (! interval.begin) throw new error(std::string("Could not determine end of period '") + optarg + "'"); if (! report->predicate.empty()) report->predicate += "&"; report->predicate += "d<["; - report->predicate += interval.end.to_string(); + report->predicate += interval.begin.to_string(); report->predicate += "]"; - terminus = interval.end; + terminus = interval.begin; } OPT_END(end); OPT_BEGIN(current, "c") { -- cgit v1.2.3