|
|
|
@ -339,7 +339,7 @@ inline std::tm localtime(std::time_t time) {
|
|
|
|
|
#if !FMT_MSC_VER
|
|
|
|
|
bool fallback(detail::null<>) {
|
|
|
|
|
using namespace fmt::detail;
|
|
|
|
|
std::tm* tm = std::localtime(&time_);
|
|
|
|
|
std::tm* tm = std::localtime(&time_); // lgtm[cpp/potentially-dangerous-function]
|
|
|
|
|
if (tm) tm_ = *tm;
|
|
|
|
|
return tm != nullptr;
|
|
|
|
|
}
|
|
|
|
@ -375,7 +375,7 @@ inline std::tm gmtime(std::time_t time) {
|
|
|
|
|
|
|
|
|
|
#if !FMT_MSC_VER
|
|
|
|
|
bool fallback(detail::null<>) {
|
|
|
|
|
std::tm* tm = std::gmtime(&time_);
|
|
|
|
|
std::tm* tm = std::gmtime(&time_); // lgtm[cpp/potentially-dangerous-function]
|
|
|
|
|
if (tm) tm_ = *tm;
|
|
|
|
|
return tm != nullptr;
|
|
|
|
|
}
|
|
|
|
|