[Merged] Hide Due date time on card if no time is specified

Hi @all,

currently the full due date is displayed on the card, even if the time is empty.

I would propose to hide the time if initial.


2019-08-07 02:24 stays 2019-08-07 02:24


2019-08-07 00:00 should be 2019-08-07

I think this makes the card much clearer and less crowded.


Agree. You should do this!

I’m not sure. Because 2019-08-07 00:00 means the 0 hour of that day. Suppressing the time would make it look like the due date is that date, at any time, like 2019-08-07 23:59.
Kanboard paints the due date color red when it’s expired. So I think it would be confusing because it will look like the task is still on time (because we are still on 2019-08-07), but they will actually be already expired, because 00:00 it’s in the past.

Ya, but by not assigning a time, a user would be suggesting the end of the day…so I would suggest it be 23:59, if hidden.

I am totally fine, if the card is overdue the whole day. Is there a usecase, that I need the 00:00 information? Or isn’t it obvious?

If you’re just gonna hide it, then it doesnt matter., since you arent actually gonna remove the data.

you could also push it to the end of the day, something like the below:

      $timestamp = 1565913600;
       $test = date("i:s", $timestamp);

        if ($test = "0000") {
            $timestamp = $timestamp + 86340;
        echo date("Y-m-d H:i:s", $timestamp);

That could also be your check to determine if you need to hide it

Bada bing, bada boom