From dfde9ba4b8a16896960da080bbf3dd4746c0beda Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 4 Mar 2017 21:44:07 -0500 Subject: [PATCH] Variant: Migraded from ISO8601d to Datetime --- src/Variant.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Variant.cpp b/src/Variant.cpp index 7e8b38d42..b955c1f9f 100644 --- a/src/Variant.cpp +++ b/src/Variant.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include @@ -1872,7 +1871,7 @@ void Variant::cast (const enum type new_type) case type_date: { _date = 0; - ISO8601d iso; + Datetime iso; std::string::size_type pos = 0; if (iso.parse (_string, pos, dateFormat) && pos == _string.length ()) @@ -1892,7 +1891,7 @@ void Variant::cast (const enum type new_type) if (dateFormat != "") { - _date = ISO8601d (_string, dateFormat).toEpoch (); + _date = Datetime (_string, dateFormat).toEpoch (); break; } }