I cannot find a property where I can set the default date/time format for the whole of Ignition or the date/time format used by EasyChart for X-axis times and X-Trace times.
I am running v8.1.31 on W10 in Europe.
W10 formats date and time like this, which is how I would want it.
This is according to my OS settings.
The gateway formats like this on the Status/Performance page
Looks good.
The gateway on its Status/Overview page, section Environment says:
Local time: 2:15:07 PM
which is obviously not according to my 'locale'
And the EasyChart looks like this:
I'd rather have it like 13 Oct 2023 or 13-Oct-2023 and 13:45:29, like everybody in this corner of the world.
Did some poking around with one of my trending pages and think I found what you're looking for. Under the easy chart's 'Historical Range' header, there should be a property called 'Time Style' that can be changed from Auto, 12HR, or 24HR. Snips for reference below:
The prop above, 'Date Style,' will allow coarse changes: selections for MDY, DMY, YMD. I assume for finer tuning you'd need to use an extension function like configureChart.
The last time I tried 'YMD' it didn't effect the crosshair label, but it's been a while since I looked at that, so it's possible they have fixed it. If so, that would be the preferable solution.
With only "" inside the SimpleDateFormat argument (from the first script), the date/time tooltip would be removed. Filling that argument with your desired format should get you there.
The only difference is that a string representation of the date format is passed into SimpleDatFormat. Without it, the crosshair label disappears. At least that is the way it behaved in a basic chart. I'm not sure if I've ever applied that script to the Easy Chart, so I can't confirm what the result will be
Ah yeah I see now, bit of a dumb question lol. Haven't dived too deep into extension functions yet. For some reason was thinking it would need to sit in a custom property writing to some properties on the chart.
Time is ok now.
Date is more involved. Setting to DMY gives me 13/10/2023 on the X-trace and 13 Oct, 2023 below the x-axis. That is kind of acceptable.
I'll go and see if I can plug in a variation of those scripts sowewhere.
Thank you all!