end
fingerprint = fpr_split.last
- expiry = pub_split[6].empty? ? nil : Time.at(pub_split[6].to_i)
+ expiry = pub_split[6].empty? ? nil : Time.at(pub_split[6].to_i).utc
{
ensure: 'present',
short: fingerprint[-8..-1], # last 8 characters of fingerprint
size: pub_split[2].to_i,
type: key_type,
- created: Time.at(pub_split[5].to_i).to_s,
+ created: Time.at(pub_split[5].to_i).utc.to_s,
expiry: expiry.to_s,
expired: (expiry && Time.now >= expiry) ? true : false,
}
short: '8AE22BA9',
size: 4096,
type: :rsa,
- created: '2017-05-22 19:41:53 +0100',
- expiry: '2025-05-20 19:41:53 +0100',
+ created: '2017-05-22 18:41:53 UTC',
+ expiry: '2025-05-20 18:41:53 UTC',
expired: false },
{ ensure: 'present',
name: '126C0D24BD8A2942CC7DF8AC7638D0442B90D010',
short: '2B90D010',
size: 4096,
type: :rsa,
- created: '2014-11-21 21:01:13 +0000',
- expiry: '2022-11-19 21:01:13 +0000',
+ created: '2014-11-21 21:01:13 UTC',
+ expiry: '2022-11-19 21:01:13 UTC',
expired: false },
]
end