(write_stats): use krb5_format_time
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14249 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -570,9 +570,7 @@ write_stats(krb5_context context, slave *slaves, u_int32_t current_version)
|
||||
else
|
||||
rtbl_add_column_entry(tbl, SLAVE_STATUS, "Up");
|
||||
|
||||
if (strftime(str, sizeof(str), "%Y-%m-%d %H:%M:%S %Z",
|
||||
localtime(&slaves->seen)) == 0)
|
||||
strlcpy(str, "Unknown time", sizeof(str));
|
||||
ret = krb5_format_time(context, slaves->seen, str, sizeof(str), TRUE);
|
||||
rtbl_add_column_entry(tbl, SLAVE_SEEN, str);
|
||||
|
||||
slaves = slaves->next;
|
||||
|
Reference in New Issue
Block a user