GRA0007 / crab.fit

Enter your availability to find a time that works for everyone!
https://crab.fit
GNU General Public License v3.0
244 stars 31 forks source link

Automatic Week-Start and Time-Format based on Locale #322

Open lumi-a opened 6 months ago

lumi-a commented 6 months ago

Proposed feature or solution

The week-start and time-format should have default values based on the user's locale. Currently, as far as I can tell, their default values are always "Sunday" and "am/pm", regardless of the user's locale.

Alternatives

The week-start and time-format can be removed entirely if instead the frontend-time-display is based entirely on the user's locale. Many websites display time just using .toLocaleString. This would also make i18n easier.

Additional information

The week-start can be acquired with .getWeekInfo, the relevant time-format with .getHourCycles.