diff options
| author | Jakob L. Kreuze | 2019-05-11 08:29:44 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-05-11 08:29:44 -0400 |
| commit | 8d4f38027b3baeead5da2399431649241ebab73e (patch) | |
| tree | 9a96afae00bbccda5786ccf2933820742c5f2f12 /haunt | |
| parent | 43a0084358370d0e735fe98b567250d03d983f2a (diff) | |
Import publication times
Diffstat (limited to 'haunt')
| -rw-r--r-- | haunt/haunt.scm | 4 |
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) |