mirror of https://github.com/djcb/mu.git
parent
e435692bb2
commit
8b7e63e84f
|
@ -228,7 +228,7 @@ output_json(ItemType itype, OptContact contact, const Options& opts)
|
||||||
name.c_str(),
|
name.c_str(),
|
||||||
Mu::quote(contact->display_name(true)).c_str(),
|
Mu::quote(contact->display_name(true)).c_str(),
|
||||||
contact->message_date,
|
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->personal ? "true" : "false",
|
||||||
contact->frequency);
|
contact->frequency);
|
||||||
g_print (" }");
|
g_print (" }");
|
||||||
|
|
|
@ -345,7 +345,7 @@ test_mu_cfind_json()
|
||||||
"name" : null,
|
"name" : null,
|
||||||
"display" : "a@example.com",
|
"display" : "a@example.com",
|
||||||
"last-seen" : 1463331445,
|
"last-seen" : 1463331445,
|
||||||
"last-seen-iso" : "2016-05-15T19:57:25Z",
|
"last-seen-iso" : "2016-05-15T16:57:25Z",
|
||||||
"personal" : false,
|
"personal" : false,
|
||||||
"frequency" : 1
|
"frequency" : 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue