Skip to content
Snippets Groups Projects
Commit d3282875 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

conversationsview: show localetime for last interaction

Change-Id: I728c7c719710c04f071a2c230fad17c80d026ee7
Gitlab: #780
parent 4e43b1ec
No related branches found
No related tags found
No related merge requests found
......@@ -241,8 +241,8 @@ render_time(G_GNUC_UNUSED GtkTreeViewColumn *tree_column,
std::time_t now = std::time(nullptr);
char interactionDay[100];
char nowDay[100];
std::strftime(interactionDay, sizeof(interactionDay), "%D", std::localtime(&lastInteractionTimestamp));
std::strftime(nowDay, sizeof(nowDay), "%D", std::localtime(&now));
std::strftime(interactionDay, sizeof(interactionDay), "%x", std::localtime(&lastInteractionTimestamp));
std::strftime(nowDay, sizeof(nowDay), "%x", std::localtime(&now));
if (std::string(interactionDay) == std::string(nowDay)) {
char interactionTime[100];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment