From 5287e9858e1e8ff5fc6d5517105f0a9ee2a27ff6 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Mon, 10 Oct 2022 16:29:40 +0100 Subject: [PATCH] change month number to name when adding archive entry to search DB. This change is so the refinements on the seach page shows the month names instead of thier numbers. This is because most people tend to work with month names and not numbers in this context. --- src/search.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/search.lisp b/src/search.lisp index a71de19..51a8d21 100644 --- a/src/search.lisp +++ b/src/search.lisp @@ -37,7 +37,8 @@ Note: The JSON object to encoded as a string." ("relative-path" . ,relative-path-value) ("thumbnail-path" . ,thumbnail-path-value) ("year" . ,(local-time:timestamp-year created-at-value)) - ("month" . ,(local-time:timestamp-month created-at-value)) + ("month" . ,(utils:month-number-to-name + (local-time:timestamp-month created-at-value))) ("day" . ,(local-time:timestamp-day created-at-value)) ("keywords" . ,(cl-ppcre:split "," keywords-value))))))