Date format in the Web UI

GavinWA10 months ago

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?

Anton Tananaev10 months ago

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.

GavinWA10 months ago

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'

undefined

Anton Tananaev10 months ago

I think I know the problem. Will look into it a bit later.

Anton Tananaev10 months ago
GavinWA10 months ago

Thank you for looking into this.