diff --git a/date.h b/date.h index e672377..6c7f894 100644 --- a/date.h +++ b/date.h @@ -3105,7 +3105,7 @@ public: { using namespace std; save_stream _(os); - if (t.h_ < std::chrono::hours{0}) + if (static_cast(t) < std::chrono::hours{0}) os << '-'; os.fill('0'); os.flags(std::ios::dec | std::ios::right); @@ -3171,7 +3171,7 @@ public: { using namespace std; save_stream _(os); - if (t.h_ < std::chrono::hours{0}) + if (static_cast(t) < std::chrono::hours{0}) os << '-'; os.fill('0'); os.flags(std::ios::dec | std::ios::right); @@ -3246,7 +3246,7 @@ public: { using namespace std; save_stream _(os); - if (t.h_ < std::chrono::hours{0}) + if (static_cast(t) < std::chrono::hours{0}) os << '-'; os.fill('0'); os.flags(std::ios::dec | std::ios::right); diff --git a/tz.cpp b/tz.cpp index 6d23229..e4aca91 100644 --- a/tz.cpp +++ b/tz.cpp @@ -28,7 +28,7 @@ static std::string install{"/Users/howardhinnant/Downloads/tzdata2015e"}; static const std::vector files = { - "africa", "antarctica", "asia", "australasia", "etcetera", "europe", + "africa", "antarctica", "asia", "australasia", "backward", "etcetera", "europe", "pacificnew", "northamerica", "southamerica", "systemv", "leapseconds" }; @@ -1326,7 +1326,7 @@ operator<<(std::ostream& os, const Zone& z) for (auto const& s : z.zonelets_) { os << indent; - if (s.gmtoff_ >= minutes{0}) + if (s.gmtoff_ >= seconds{0}) os << ' '; os << make_time(s.gmtoff_) << " "; os.width(15);