summaryrefslogtreecommitdiff
path: root/src/Utility/Scheduled.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utility/Scheduled.hs')
-rw-r--r--src/Utility/Scheduled.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utility/Scheduled.hs b/src/Utility/Scheduled.hs
index b3813323..5e813d4a 100644
--- a/src/Utility/Scheduled.hs
+++ b/src/Utility/Scheduled.hs
@@ -286,7 +286,7 @@ fromScheduledTime AnyTime = "any time"
fromScheduledTime (SpecificTime h m) =
show h' ++ (if m > 0 then ":" ++ pad 2 (show m) else "") ++ " " ++ ampm
where
- pad n s = take (n - length s) (repeat '0') ++ s
+ pad n s = replicate (n - length s) '0' ++ s
(h', ampm)
| h == 0 = (12, "AM")
| h < 12 = (h, "AM")