From 9effdb3aa2bfcad9dc391cbe5a15b9f563505b00 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Jun 2010 21:30:33 -0400 Subject: Option --input-date-format adds to candidate list --- src/times.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/times.cc b/src/times.cc index 26e1dc21..a9768f4f 100644 --- a/src/times.cc +++ b/src/times.cc @@ -191,7 +191,7 @@ namespace { shared_ptr printed_datetime_io; shared_ptr printed_date_io; - std::vector > readers; + std::deque > readers; date_t parse_date_mask_routine(const char * date_str, date_io_t& io, optional_year year, @@ -1533,7 +1533,7 @@ void set_date_format(const char * format) void set_input_date_format(const char * format) { - input_date_io.reset(new date_io_t(format, true)); + readers.push_front(shared_ptr(new date_io_t(format, true))); } void times_initialize() -- cgit v1.2.3