danielkeller / budge_it

0 stars 1 forks source link

Preferred date format from locale #5

Open cransom12 opened 1 year ago

cransom12 commented 1 year ago

Already done for currency display?

Requires js?

danielkeller commented 1 year ago

This is now sort of working. It formats the date based on a guess of the region from the Accept-Language header, but this is only based on the language. It doesn't necessarily match with the JS number formatting if you set a different regional formatting in the system settings. For example, my laptop is in American English with Swiss formatting, and the Accept-Language is just en-US.