From 183b02129a96dcfe0d83e7d2e433b6ef509b316e Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 21 Nov 2008 03:04:34 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/CPPOST-22 --- saml/saml2/metadata/impl/XMLMetadataProvider.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp index 6938bce..ad6ad68 100644 --- a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp +++ b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp @@ -133,12 +133,12 @@ void XMLMetadataProvider::index() EntitiesDescriptor* group=dynamic_cast(m_object); if (group) { if (!m_local && group->getCacheDuration()) - exp = time_t(NULL) + group->getCacheDurationEpoch(); + exp = time(NULL) + group->getCacheDurationEpoch(); AbstractMetadataProvider::index(group, exp); return; } EntityDescriptor* site=dynamic_cast(m_object); if (!m_local && site->getCacheDuration()) - exp = time_t(NULL) + site->getCacheDurationEpoch(); + exp = time(NULL) + site->getCacheDurationEpoch(); AbstractMetadataProvider::index(site, exp); } -- 2.1.4