diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-10-28 16:30:32 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-10-28 16:30:32 +0200 |
commit | ef6d903de0ec107770ccbc8efb8ee447d6cad840 (patch) | |
tree | e9e21b8d3f4a0a70f8ee7627632a2fbae556c5d7 /modules/todo/todo.html | |
parent | 3d5b979c7c2d15a507368500ab0d346521366173 (diff) |
todo: In 1 day -> tomorrow
Diffstat (limited to 'modules/todo/todo.html')
-rw-r--r-- | modules/todo/todo.html | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |