aboutsummaryrefslogtreecommitdiff
path: root/module/datetime.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/datetime.scm')
-rw-r--r--module/datetime.scm8
1 files changed, 1 insertions, 7 deletions
diff --git a/module/datetime.scm b/module/datetime.scm
index adff669a..140c05db 100644
--- a/module/datetime.scm
+++ b/module/datetime.scm
@@ -386,13 +386,7 @@
key: (locale %global-locale))
;; NOTE this allows days larger than 7 (sunday if counting from monday).
- (let ((str (catch 'out-of-range
- (lambda () (locale-day (1+ (modulo week-day-number 7)) locale))
- (lambda (oor str num)
- (scm-error 'out-of-range "week-day-name"
- "~a == (~a % 7) + 1"
- (list num week-day-number)
- #f)))))
+ (let ((str (locale-day (1+ (modulo week-day-number 7)) locale)))
;; I also know about the @var{locale-day-short} method, but I need
;; strings of length 2.
(if truncate-to