We use this for formatting:
https://day.js.org/docs/en/display/format#localized-formats
What is your browser locale settings? Please provide a screenshot.
Hi Anton.
Thanks for getting back to me. Below is the locale settings for my Firefox user. So en-AU, en-GB, en in that order.
Is there a way to set the Day.js locale import for my localisation - i.e. to use Day.js' en-au.js ? From my limited understanding of their documentation, it appears as though the English default is en-US only.
Or, is there a way to specify for a user their preferred date format explicitly like, L: 'DD/MM/YYYY'
I think I know the problem. Will look into it a bit later.
This should fix the issue:
https://github.com/traccar/traccar-web/commit/b77092b2a7a3b42b229bc4239eb5a4438385338f
Thank you for looking into this.
Helllo.
In the Web UI for devices Server Time Value, fixTime Value, etc the date format is showing in US MM/DD/YYY format. Fetching /api/positions/id=xxx is showing the data in YYYY-MM-DD format.
I have tried a few browsers, (Firefox, Chrome) which have the locale set correctly but the date is not showing in my locale format of DD/MM/YYYY.
Is there a configuration variable somewhere I need to set to correct the date format in the Web UI?