mu-cfind: use UTC in json output

Fixes #2391.
This commit is contained in:
Dirk-Jan C. Binnema 2022-12-30 23:37:23 +02:00
parent e435692bb2
commit 8b7e63e84f
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ output_json(ItemType itype, OptContact contact, const Options& opts)
name.c_str(),
Mu::quote(contact->display_name(true)).c_str(),
contact->message_date,
time_to_string("%FT%TZ", contact->message_date).c_str(),
time_to_string("%FT%TZ", contact->message_date, true/*utc*/).c_str(),
contact->personal ? "true" : "false",
contact->frequency);
g_print (" }");

View File

@ -345,7 +345,7 @@ test_mu_cfind_json()
"name" : null,
"display" : "a@example.com",
"last-seen" : 1463331445,
"last-seen-iso" : "2016-05-15T19:57:25Z",
"last-seen-iso" : "2016-05-15T16:57:25Z",
"personal" : false,
"frequency" : 1
}