aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Mail.hs
diff options
context:
space:
mode:
authorJoris2015-11-29 12:22:22 +0100
committerJoris2015-11-29 12:22:22 +0100
commit54d944eded3463f7d6a4dc506fc1885d0cac662d (patch)
tree24ce7cf6892fea56a147275eb024759fec040eff /src/Model/Mail.hs
parenta9bc46efe3624344573f96fafa8af194016183a2 (diff)
Show days of week in next week notification
Diffstat (limited to 'src/Model/Mail.hs')
-rw-r--r--src/Model/Mail.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Model/Mail.hs b/src/Model/Mail.hs
index 2af2159..deb720a 100644
--- a/src/Model/Mail.hs
+++ b/src/Model/Mail.hs
@@ -102,5 +102,13 @@ mailBodyPart event currDate (line, birthdate) =
then age currDate birthdate
else ageNextWeek currDate birthdate
, " years old"
+ , if event == NextWeek
+ then
+ T.concat
+ [ " on "
+ , getWeekDay $ (date birthdate) { year = year currDate }
+ ]
+ else
+ ""
, if line == SingleLine || line == LastLine then "." else ""
]