We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67686cf commit bf38ba7Copy full SHA for bf38ba7
src/FLAlertLayer.cpp
@@ -499,10 +499,7 @@ void DeltaruneAlertLayer::handleAprilFools() {
499
auto& nameToFile = m_fields->nameToFile;
500
501
time_t t = time(nullptr);
502
- struct tm now;
503
-
504
- if (localtime_s(&now, &t) != 0)
505
- return;
+ auto now = fmt::localtime(t);
506
507
if (now.tm_mon != 3 || now.tm_mday != 1)
508
return;
0 commit comments