Skip to content

Can I customize the date format? #5

Answered by myakura
myakura asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: No. But I agree it'll be so nice.

Long answer: this extension is CSS-based. It just exposes what GitHub's <relative-time> custom element has in its datetime attribute, which is an ISO-style date.

In order to make it customizable, I need to add

  1. some UI so you can customize what you want it look
  2. bunch of JavaScript codes for make 1 work
  3. another bunch of JavaScript codes to apply your style to existing dates, and dynamically added dates (new comments, or expanded then-folded comments)

and that's a lot of work (I think). I know it's not pretty. But I'm wondering working on it will worth the time...

Replies: 1 comment

Comment options

myakura
Feb 26, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by myakura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant