summaryrefslogtreecommitdiff
path: root/org-fc-awk.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-fc-awk.el')
-rw-r--r--org-fc-awk.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/org-fc-awk.el b/org-fc-awk.el
index d3ca453..40e8a7b 100644
--- a/org-fc-awk.el
+++ b/org-fc-awk.el
@@ -61,16 +61,12 @@ each separated by a tab, into a keyword-number plist."
;;;; TSV
-(defun org-fc-tsv--parse-date (date)
- "Parse an ISO8601 date to an Emacs time."
- (parse-iso8601-time-string (concat date ":00")))
-
(defun org-fc-tsv--parse-element (header element)
"Parse an ELEMENT of a row given a single HEADER element."
(if (listp header)
(pcase (cdr header)
('string element)
- ('date (org-fc-tsv--parse-date element))
+ ('date (parse-iso8601-time-string element))
('number (string-to-number element))
('symbol (intern element))
('keyword (intern (concat ":" element)))