Index: sources/ApplicationPost.cpp =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -rb10cf6d3e2db78ab255835ba6a450861eae4068e --- sources/ApplicationPost.cpp (.../ApplicationPost.cpp) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/ApplicationPost.cpp (.../ApplicationPost.cpp) (revision b10cf6d3e2db78ab255835ba6a450861eae4068e) @@ -221,3 +221,16 @@ emit didSound(ok); return ok; } + +/*! + * \brief ApplicationPost::checkYear + * \details Checks the year is greater than or equal to 2022. + * \return false if there is an issue. + */ +bool ApplicationPost::checkYear() +{ + bool ok = _content.contains(_postmsg_wifi + _postmsg_postfix_passed); + if (! ok) emit didFail(Gui::GuiAlarmID::ALARM_ID_UI_POST_FAILURE_INVALID_YEAR); + emit didYearCheck(ok); + return ok; +}