diff options
author | mouse <mousebot@disroot.org> | 2023-01-21 09:25:32 +0100 |
---|---|---|
committer | mouse <mousebot@disroot.org> | 2023-01-21 10:57:09 +0100 |
commit | 3ff4af19255c3da92cc87edf9dd604eed567137a (patch) | |
tree | 85c95bd762b938dfb7aa005965b4cde3dfa67823 | |
parent | b12532f5d4c2736be2acfe8d33db3475355dee95 (diff) |
profile--format-joined-date-string - don't use ts.el to format
-rw-r--r-- | lisp/mastodon-profile.el | 7 |
1 files 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. |