Skip to content

Commit bf38ba7

Browse files
committed
this should cross compile
1 parent 67686cf commit bf38ba7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/FLAlertLayer.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,7 @@ void DeltaruneAlertLayer::handleAprilFools() {
499499
auto& nameToFile = m_fields->nameToFile;
500500

501501
time_t t = time(nullptr);
502-
struct tm now;
503-
504-
if (localtime_s(&now, &t) != 0)
505-
return;
502+
auto now = fmt::localtime(t);
506503

507504
if (now.tm_mon != 3 || now.tm_mday != 1)
508505
return;

0 commit comments

Comments
 (0)