From: Scott Cantor Date: Fri, 21 Nov 2008 03:04:34 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/CPPOST-22 X-Git-Tag: 2.2.0~44 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=183b02129a96dcfe0d83e7d2e433b6ef509b316e https://issues.shibboleth.net/jira/browse/CPPOST-22 --- 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); }