From 3ff4af19255c3da92cc87edf9dd604eed567137a Mon Sep 17 00:00:00 2001 From: mouse Date: Sat, 21 Jan 2023 09:25:32 +0100 Subject: profile--format-joined-date-string - don't use ts.el to format --- lisp/mastodon-profile.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el index f96ecb5..ac9feba 100644 --- a/lisp/mastodon-profile.el +++ b/lisp/mastodon-profile.el @@ -740,11 +740,8 @@ HEADERS means also fetch link headers for pagination." (defun mastodon-profile--format-joined-date-string (joined) "Format a human-readable Joined string from timestamp JOINED." - (let ((joined-ts (ts-parse joined))) - (format "Joined %s" (concat (ts-month-name joined-ts) - " " - (number-to-string - (ts-year joined-ts)))))) + (format-time-string "Joined: %d %B %Y" + (parse-iso8601-time-string joined))) (defun mastodon-profile--get-toot-author () "Open profile of author of toot under point. -- cgit v1.2.3