deepjyoti30 / startpage

A minimal starpage for Chrome and Firefox
MIT License
625 stars 85 forks source link

Date format option #62

Open BBGamingNL opened 1 year ago

BBGamingNL commented 1 year ago

I had the idea for, being able to change the way the date is written.

example instead of "Aug 2, 12:18", "12:18, 2 Aug."

Then for the setting can be filled in this way https://momentjs.com/docs/#/displaying/format/

Would this be possible?

deepjyoti30 commented 11 months ago

I am not sure about using moment but some sort of formatting might be possible.

EDIT: Looked through the code and we are using toLocaleString to generate the time. Afaik, JS doesn't have a lot of flexibility in terms of custom formatted time but I am skeptical to introduce moment.js as a dependency.

I don't think the feature is worth it to introduce a dependency like moment to get just custom formatting working.