modified more time based files to work on clang

This commit is contained in:
AdenKoperczak 2024-09-19 13:33:05 -04:00
parent 5c3bcaa0ce
commit 0585ab828c
3 changed files with 3 additions and 3 deletions

View file

@ -271,7 +271,7 @@ size_t RadarSite::ReadConfig(const std::string& path)
try try
{ {
#if defined(_MSC_VER) #if (defined(_MSC_VER) || defined(__clang__))
using namespace std::chrono; using namespace std::chrono;
#else #else
using namespace date; using namespace date;

View file

@ -413,7 +413,7 @@ const scwx::util::time_zone* RadarProductManager::default_time_zone() const
} }
case types::DefaultTimeZone::Local: case types::DefaultTimeZone::Local:
#if defined(_MSC_VER) #if (defined(_MSC_VER) || defined(__clang__))
return std::chrono::current_zone(); return std::chrono::current_zone();
#else #else
return date::current_zone(); return date::current_zone();

View file

@ -15,7 +15,7 @@ namespace scwx
namespace util namespace util
{ {
#if defined(_MSC_VER) #if (defined(_MSC_VER) || defined(__clang__))
typedef std::chrono::time_zone time_zone; typedef std::chrono::time_zone time_zone;
#else #else
typedef date::time_zone time_zone; typedef date::time_zone time_zone;