From e59fba4ddde9c9567a051232ca59e20892ee80e3 Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Mon, 4 Sep 2017 10:47:03 -0500 Subject: [PATCH] fix exception message --- Foundation/src/DateTime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"