summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src/date_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WhenWasIt/src/date_utils.cpp')
-rw-r--r--plugins/WhenWasIt/src/date_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/WhenWasIt/src/date_utils.cpp b/plugins/WhenWasIt/src/date_utils.cpp
index 856a2711ab..2dd9a3b91b 100644
--- a/plugins/WhenWasIt/src/date_utils.cpp
+++ b/plugins/WhenWasIt/src/date_utils.cpp
@@ -29,7 +29,7 @@ time_t Today()
return mktime(date);
}
-int IsDOBValid(int year, int month, int day)
+bool IsDOBValid(int year, int month, int day)
{
return (year != 0 && month != 0 && day != 0);
}
@@ -89,7 +89,7 @@ char GetContactGender(HANDLE hContact)
return gender;
}
-int IsLeapYear(int year)
+bool IsLeapYear(int year)
{
return ((year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0)));
}