mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-25 13:25:37 +00:00
Fixed time formatting with VS.
This commit is contained in:
@@ -238,7 +238,7 @@ inline std::string format_date(const std::string& format, std::time_t timet, boo
|
||||
{
|
||||
#if defined HAVE_WIN_SE_FUNCS && HAVE_WIN_SE_FUNCS
|
||||
struct std::tm ltm;
|
||||
if (localtime_s(<m, &timet) == 0) // shut up msvc (it thinks std::localtime() is unsafe)
|
||||
if (localtime_s(<m, &timet) != 0) // shut up msvc (it thinks std::localtime() is unsafe)
|
||||
return std::string();
|
||||
const struct std::tm* ltmp = <m;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user