neko icon indicating copy to clipboard operation
neko copied to clipboard

Fix date_format crash on Windows

Open tobil4sk opened this issue 2 years ago • 0 comments

Closes #211

strftime crashes on Windows if it receives invalid parameters, so we need to manually validate the format parameter to avoid crashing.

See: https://stackoverflow.com/a/64328476 https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?view=msvc-170#remarks https://en.cppreference.com/w/c/chrono/strftime

tobil4sk avatar Mar 29 '23 13:03 tobil4sk