question

Steven Hamoen avatar image
1 Like"
Steven Hamoen asked Steven Hamoen commented

Time in graphs and regional settings

I found this post of 2019 and I'm not sure this is a bug or a remark but I would like to show normal 24 hour time stamps in my graph and not the 6:00 AM and 6:00 PM. After fiddling around I found that I could only get this to work if I selected English (United Kingdom) as the Regional format settings in windows 11 (my country or region is Netherlands)

So I would expect that the change formats option of the Regional format setting would have an impact but strangely enough it doesn't. It looks like it is hard coded or something. Could somebody explain it so that I can explain to somebody else?

FlexSim 23.2.3
timegraphsregional
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Steven Hamoen, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Steven Hamoen commented

To format dates and times in charts, FlexSim does the following. First, it gets your locale specifier with this application command:

applicationcommand("getlocaleinfo", 0x0000005c)

On my computer, this returns 'en-US'. If your region is set to the netherlands, I think you'd get 'nl-NL'.

With this format, FlexSim then checks the list of chart formats found here:

MAIN:/project/library/statistics/GenericChart>behaviour/eventfunctions/localeInfoD3/timeFormats

From this list, it looks like nl-NL is set to use a 24-hour time format.

The way to change it is in this dialog:

1707148826833.png

You also need to close FlexSim and re-open it to see the change take effect. When I make this change, the charts show the date and time in 24-hour format:

1707148900119.png


1707148826833.png (40.9 KiB)
1707148900119.png (95.9 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Hamoen avatar image Steven Hamoen commented ·
@Jordan Johnson Thanks for the complete explanation. I think that I didn't open and close FlexSim or something because basically the settings where OK. So I don't know exactly why it didn't work on my side but now it does.
0 Likes 0 ·