diff --git a/security_monkey/watchers/acm.py b/security_monkey/watchers/acm.py index e1c56d74f..e02894198 100644 --- a/security_monkey/watchers/acm.py +++ b/security_monkey/watchers/acm.py @@ -97,6 +97,9 @@ def slurp(self): config.update({ 'IssuedAt': config.get('IssuedAt').astimezone(tzutc()).isoformat() }) if config.get('ImportedAt'): config.update({ 'ImportedAt': config.get('ImportedAt').astimezone(tzutc()).isoformat()}) + if config.get('RenewalSummary', {}).get('UpdatedAt'): + config['RenewalSummary']['UpdatedAt'] = config['RenewalSummary']['UpdatedAt'].astimezone( + tzutc()).isoformat() item = ACMCertificate(region=region.name, account=account, name=cert.get('DomainName'), arn=cert.get('CertificateArn'), config=dict(config), source_watcher=self)