From e8f8a1ffacb49cd5871b67beae44d71019fd54aa Mon Sep 17 00:00:00 2001 From: Matthias Gabriel Date: Thu, 25 Aug 2016 08:20:14 +0200 Subject: [PATCH 1/3] Added missing sstream include --- date.h | 1 + 1 file changed, 1 insertion(+) diff --git a/date.h b/date.h index cf1e907..7e6c654 100644 --- a/date.h +++ b/date.h @@ -39,6 +39,7 @@ #include #include #include +#include namespace date { From ef8bba98188d6561d9f38c1f55dd6e51f2895789 Mon Sep 17 00:00:00 2001 From: Matthias Gabriel Date: Thu, 25 Aug 2016 08:23:19 +0200 Subject: [PATCH 2/3] Fix missing standard locale --- date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/date.h b/date.h index 7e6c654..e6e9dd2 100644 --- a/date.h +++ b/date.h @@ -4063,7 +4063,7 @@ format(std::basic_string fmt, sys_time tp) { const std::string abbrev("UTC"); CONSTDATA std::chrono::seconds offset{0}; - return detail::format(std::move(fmt), local_time{tp.time_since_epoch()}, + return detail::format(std::locale{}, std::move(fmt), local_time{tp.time_since_epoch()}, &abbrev, &offset); } From ef57f27b38138e8128304b8dc219548a80b58359 Mon Sep 17 00:00:00 2001 From: Matthias Gabriel Date: Thu, 25 Aug 2016 15:41:49 +0200 Subject: [PATCH 3/3] Added #include for windows std::isdigit --- date.h | 1 + 1 file changed, 1 insertion(+) diff --git a/date.h b/date.h index e6e9dd2..536add0 100644 --- a/date.h +++ b/date.h @@ -40,6 +40,7 @@ #include #include #include +#include namespace date {