diff --git a/date.h b/date.h index 91935d2..8017db0 100644 --- a/date.h +++ b/date.h @@ -27,20 +27,25 @@ // been invented (that woud involve another several millennia of evolution). // We did not mean to shout. +#include #include -#include #if !(__cplusplus >= 201402) # include #endif #include #include +#include +#include +#include #include #include #include #include -#include #include -#include +#include +#include +#include +#include namespace date { @@ -3957,7 +3962,8 @@ format(const std::locale& loc, std::basic_string fmt, break; case 'S': case 'T': - if (command && !modified && ratio_less>::value) + if (command && !modified && ratio_less>::value) { basic_ostringstream os; os.imbue(loc); @@ -4065,8 +4071,8 @@ format(std::basic_string fmt, sys_time tp) { const std::string abbrev("UTC"); CONSTDATA std::chrono::seconds offset{0}; - return detail::format(std::locale{}, std::move(fmt), local_time{tp.time_since_epoch()}, - &abbrev, &offset); + return detail::format(std::locale{}, std::move(fmt), + local_time{tp.time_since_epoch()}, &abbrev, &offset); } // const CharT* formats diff --git a/tz.h b/tz.h index 6941491..2f17df4 100644 --- a/tz.h +++ b/tz.h @@ -78,22 +78,19 @@ static_assert(HAS_REMOTE_API == 0 ? AUTO_DOWNLOAD == 0 : true, #include #include #include -#include #include #include +#if LAZY_INIT +# include +# include +#endif #include -#include #include #include #include #include #include #include -#if LAZY_INIT -# include -# include -#endif -#include namespace date {