obi ls: various improvements

This commit is contained in:
Celine Mercier
2019-09-10 14:41:43 +02:00
parent 045a751b0f
commit 8f9f2a2d10
4 changed files with 58 additions and 6 deletions

View File

@ -1096,6 +1096,16 @@ static int finish_view(Obiview_p view)
(column->header)->finished = true;
}
// Add the time in the view comments
time_t t;
t = time(&t);
if (obi_view_add_comment(view, "Date created", strtok(ctime(&t), "\n")) < 0)
{
obi_set_errno(OBIVIEW_ERROR);
obidebug(1, "\nError adding the date of creation when finishing a view");
return -1;
}
// Flag the view as finished
(view->infos)->finished = true;