Skip to content
Snippets Groups Projects
Commit df62f465 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Fix for renamed function.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3335 44740490-163a-0410-bde0-09ae8108e29a
parent 0033a24a
No related branches found
No related tags found
No related merge requests found
......@@ -365,14 +365,14 @@ class SimpleSAML_Utilities {
$currentTime = time();
if (!empty($start)) {
$startTime = SAML2_Utils::parseSAML2Time($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::parseSAML2Time($end);
$endTime = SAML2_Utils::xsDateTimeToTimestamp($end);
if (($endTime < 0) || ($endTime <= $currentTime)) {
return FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment