From ef6d903de0ec107770ccbc8efb8ee447d6cad840 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 28 Oct 2016 16:30:32 +0200 Subject: todo: In 1 day -> tomorrow --- modules/todo/todo.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/todo/todo.html b/modules/todo/todo.html index 8e6efdf..309fb18 100644 --- a/modules/todo/todo.html +++ b/modules/todo/todo.html @@ -64,6 +64,9 @@ function fancydate(date){ if(diffweeks>0){ return "In "+diffweeks+" week"+(diffweeks==1?"":"s")+", "+diffdays%7+" day"+(diffdays%7==1?"":"s"); } + if(diffdays==1){ + return "Tomorrow, "+fancytime(dateS); + } return "In "+diffdays+" day"+(diffdays==1?"":"s")+", "+fancytime(dateS); } -- cgit v1.2.3-54-g00ecf