diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php
index a0a968dc2f1ea29e39eb62382661bdd948e9d11d..3ffac923fb2bb6d3363fdc83ccffe6a02daeea4c 100644
--- a/lib/SimpleSAML/Utilities.php
+++ b/lib/SimpleSAML/Utilities.php
@@ -130,9 +130,12 @@ class SimpleSAML_Utilities {
 	}
 
 
+	/**
+	 * @deprecated This method will be removed in SSP 2.0.
+	 */
 	public static function checkDateConditions($start=NULL, $end=NULL) {
 		$currentTime = time();
-	
+
 		if (!empty($start)) {
 			$startTime = SAML2_Utils::xsDateTimeToTimestamp($start);
 			/* Allow for a 10 minute difference in Time */
diff --git a/lib/SimpleSAML/XML/Shib13/AuthnResponse.php b/lib/SimpleSAML/XML/Shib13/AuthnResponse.php
index 1c5d9fcf6447b96b3068e69ec7df20a49797d33a..6ac610a128ae7c07a67a55c3c330291b8582c990 100644
--- a/lib/SimpleSAML/XML/Shib13/AuthnResponse.php
+++ b/lib/SimpleSAML/XML/Shib13/AuthnResponse.php
@@ -212,7 +212,7 @@ class SimpleSAML_XML_Shib13_AuthnResponse {
 				$end = $condition->getAttribute('NotOnOrAfter');
 
 				if ($start && $end) {
-					if (! SimpleSAML_Utilities::checkDateConditions($start, $end)) {
+					if (!self::checkDateConditions($start, $end)) {
 						error_log('Date check failed ... (from ' . $start . ' to ' . $end . ')');
 						continue;
 					}
@@ -427,5 +427,42 @@ class SimpleSAML_XML_Shib13_AuthnResponse {
 		return $attr;
 	}
 
+	/**
+	 * Check if we are currently between the given date & time conditions.
+	 *
+	 * Note that this function allows a 10-minute leap from the initial time as marked by $start.
+	 *
+	 * @param string|null $start A SAML2 timestamp marking the start of the period to check. Defaults to null, in which
+	 *     case there's no limitations in the past.
+	 * @param string|null $end A SAML2 timestamp marking the end of the period to check. Defaults to null, in which
+	 *     case there's no limitations in the future.
+	 *
+	 * @return bool True if the current time belongs to the period specified by $start and $end. False otherwise.
+	 *
+	 * @see \SAML2_Utils::xsDateTimeToTimestamp.
+	 *
+	 * @author Andreas Solberg, UNINETT AS <andreas.solberg@uninett.no>
+	 * @author Olav Morken, UNINETT AS <olav.morken@uninett.no>
+	 */
+	protected static function checkDateConditions($start = null, $end = null)
+	{
+		$currentTime = time();
+
+		if (!empty($start)) {
+			$startTime = \SAML2_Utils::xsDateTimeToTimestamp($start);
+			// allow for a 10 minute difference in time
+			if (($startTime < 0) || (($startTime - 600) > $currentTime)) {
+				return false;
+			}
+		}
+		if (!empty($end)) {
+			$endTime = \SAML2_Utils::xsDateTimeToTimestamp($end);
+			if (($endTime < 0) || ($endTime <= $currentTime)) {
+				return false;
+			}
+		}
+		return true;
+	}
+
 }