aboutsummaryrefslogtreecommitdiff
path: root/haunt
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-05-11 08:29:44 -0400
committerJakob L. Kreuze2019-05-11 08:29:44 -0400
commit8d4f38027b3baeead5da2399431649241ebab73e (patch)
tree9a96afae00bbccda5786ccf2933820742c5f2f12 /haunt
parent43a0084358370d0e735fe98b567250d03d983f2a (diff)
Import publication times
Diffstat (limited to 'haunt')
-rw-r--r--haunt/haunt.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/haunt/haunt.scm b/haunt/haunt.scm
index b5b85d3..c618ab0 100644
--- a/haunt/haunt.scm
+++ b/haunt/haunt.scm
@@ -50,7 +50,9 @@
;; date format that Org uses.
(define (org-string->date str)
"Convert STR, a string in Org format, into a SRFI-19 date object."
- (string->date str "<~Y-~m-~d ~a>"))
+ (catch 'misc-error
+ (lambda () (string->date str "<~Y-~m-~d ~a ~H:~M>"))
+ (lambda (key . parameters) (string->date str "<~Y-~m-~d ~a>"))))
(register-metadata-parser! 'date org-string->date)

© 2015 - 2026 Jakob L. Kreuze