From 8136a59572c5904411c0c80b7e9d281a93a3a982 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 3 Oct 2015 18:02:55 -0400 Subject: [PATCH] Nibbler: Migrated from Date to ISO8601d --- src/Nibbler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Nibbler.cpp b/src/Nibbler.cpp index 44ac6b6f2..eeefd9c8a 100644 --- a/src/Nibbler.cpp +++ b/src/Nibbler.cpp @@ -33,7 +33,6 @@ #include #ifdef NIBBLER_FEATURE_DATE #include -#include #endif #ifdef NIBBLER_FEATURE_REGEX #include @@ -859,7 +858,7 @@ bool Nibbler::getDate (const std::string& format, time_t& t) // now. if (year == -1) { - Date now = Date (); + ISO8601d now; year = now.year (); if (month == -1) { @@ -890,7 +889,7 @@ bool Nibbler::getDate (const std::string& format, time_t& t) second = (second == -1) ? 0 : second; // Check that values are correct - if (! Date::valid (month, day, year, hour, minute, second)) + if (! ISO8601d::valid (month, day, year, hour, minute, second)) return false; // Convert to epoch.