diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/todo/todo.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/todo/todo.html b/modules/todo/todo.html index 1f2a060..b48d155 100644 --- a/modules/todo/todo.html +++ b/modules/todo/todo.html @@ -77,6 +77,8 @@ function fancydate(date){ } var diffweeks=~~(diffdays/7); if(diffweeks>0){ + if(diffdays%7==3||diffdays%7==4)diffweeks+=0.5; + else if(diffdays%7==5||diffdays%7==6)diffweeks++; return weekdays[(date.getDay()+6)%7]+" in "+diffweeks+" week"+(diffweeks==1?"":"s"); } if(diffdays==1){ |