diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-21 21:54:55 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-21 21:54:55 +0200 |
commit | eca4f733ffba3451ccb4c45816a9fda293e7007a (patch) | |
tree | 05687691994238a56e511d8ae5af5645948f5c88 /module/datetime | |
parent | Add week-start parameter. (diff) | |
download | calp-eca4f733ffba3451ccb4c45816a9fda293e7007a.tar.gz calp-eca4f733ffba3451ccb4c45816a9fda293e7007a.tar.xz |
Fix week-start in HTML month view from server.
Diffstat (limited to 'module/datetime')
-rw-r--r-- | module/datetime/util.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/datetime/util.scm b/module/datetime/util.scm index ed954b43..7f0ffb1f 100644 --- a/module/datetime/util.scm +++ b/module/datetime/util.scm @@ -105,6 +105,9 @@ "First day of week" (lambda (x) (<= sun x sat))) +;; TODO setting the @var{week-start} parameter from the @var{week-start} +;; config ought to be done. But a post-set method first needs to be +;; introduced in define-config. (define-public week-start (make-parameter sun)) ;; given a date, returns the date the first week of that year starts on. |