diff --git a/src/Helpers/TimeAndDate.cpp b/src/Helpers/TimeAndDate.cpp
index d231869fa760810278cf2dd53c6ea094d0cf9039..a0a02c685b416e3648ea1228ec48e0005cd9d718 100644
--- a/src/Helpers/TimeAndDate.cpp
+++ b/src/Helpers/TimeAndDate.cpp
@@ -16,7 +16,7 @@ TimeAndDate::TimeAndDate(uint16_t year, uint8_t month, uint8_t day, uint8_t hour
 	// check if the parameters makes sense
 	assertI(2019 <= year, ErrorHandler::InternalErrorType::InvalidDate);
 	assertI(1 <= month && month <= 12, ErrorHandler::InternalErrorType::InvalidDate);
-	assertI(1 <= day && month <= 31, ErrorHandler::InternalErrorType::InvalidDate);
+	assertI(1 <= day && day <= 31, ErrorHandler::InternalErrorType::InvalidDate);
 	assertI(0 <= hour && hour <= 24, ErrorHandler::InternalErrorType::InvalidDate);
 	assertI(0 <= minute && minute <= 60, ErrorHandler::InternalErrorType::InvalidDate);
 	assertI(0 <= second && second <= 60, ErrorHandler::InternalErrorType::InvalidDate);