mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
fix!: always return iso-8601 formatted date time (#453)
##### SUMMARY Fixes #91 Always return datetime as iso-8601 formatted strings. ##### ISSUE TYPE - Bugfix Pull Request
This commit is contained in:
parent
d0c82aec86
commit
55d26162b3
4 changed files with 9 additions and 5 deletions
|
|
@ -165,8 +165,8 @@ class AnsibleHCloudCertificate(AnsibleHCloud):
|
|||
"type": to_native(self.hcloud_certificate.type),
|
||||
"fingerprint": to_native(self.hcloud_certificate.fingerprint),
|
||||
"certificate": to_native(self.hcloud_certificate.certificate),
|
||||
"not_valid_before": to_native(self.hcloud_certificate.not_valid_before),
|
||||
"not_valid_after": to_native(self.hcloud_certificate.not_valid_after),
|
||||
"not_valid_before": to_native(self.hcloud_certificate.not_valid_before.isoformat()),
|
||||
"not_valid_after": to_native(self.hcloud_certificate.not_valid_after.isoformat()),
|
||||
"domain_names": [to_native(domain) for domain in self.hcloud_certificate.domain_names],
|
||||
"labels": self.hcloud_certificate.labels,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue