1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

opensshcert_components: switch expiry times to UTC.

Jacob points out that the output of 'puttygen --dump', where the
key_components are used, is much more likely to need to be machine-
than human-readable, and so it makes more sense to use a date/time
format that's invariant under external changes such as locale.

(He also points out that Windows's time zone description strings are
overly verbose!)
This commit is contained in:
Simon Tatham 2022-09-12 07:50:56 +01:00
parent 5fdfe5ac83
commit bbd46afd91

View File

@ -583,7 +583,7 @@ static void opensshcert_time_to_iso8601(BinarySink *bs, uint64_t time)
time_t t = time;
char buf[256];
put_data(bs, buf, strftime(buf, sizeof(buf),
"%a %Y-%m-%d %H:%M:%S %Z", localtime(&t)));
"%Y-%m-%d %H:%M:%S UTC", gmtime(&t)));
}
static void opensshcert_string_list_key_components(