Hi,
The usage of std::locale(“en_US.utf-8”) in
to verify the date in a metadata is forcing the user to install locale “en_US.utf-8” which seems kind of intrusive (it is for example not a part of a standard ubuntu:20.04 docker image) and is not what locale is meant to be used for i.e. the application should adapt to the locales in the system and not the other way around.
Isn’t there a better way to do this without using locales? Here are some ideas from Stack Overflow: C++ check if a date is valid - Stack Overflow
/Andreas