diff --git a/Foundation/src/DateTime.cpp b/Foundation/src/DateTime.cpp index e92fa19d1..fd1f2c9b7 100644 --- a/Foundation/src/DateTime.cpp +++ b/Foundation/src/DateTime.cpp @@ -74,7 +74,7 @@ DateTime::DateTime(int otherYear, int otherMonth, int otherDay, int otherHour, i throw Poco::InvalidArgumentException(Poco::format("Date time is %d-%d-%dT%d:%d:%d:%d:%d\n" "Valid values:\n" "0 <= year <= 9999\n" - "1 <= year <= 12\n" + "1 <= month <= 12\n" "1 <= day <= %d\n" "0 <= hour <= 23\n" "0 <= minute <= 59\n" @@ -175,7 +175,7 @@ DateTime& DateTime::assign(int otherYear, int otherMonth, int otherDay, int othe throw Poco::InvalidArgumentException(Poco::format("Date time is %d-%d-%dT%d:%d:%d:%d:%d\n" "Valid values:\n" "0 <= year <= 9999\n" - "1 <= year <= 12\n" + "1 <= month <= 12\n" "1 <= day <= %d\n" "0 <= hour <= 23\n" "0 <= minute <= 59\n"