question

Ralf Gruber avatar image
0 Likes"
Ralf Gruber asked Jeanette F commented

Handling of Daylight Saving Time

Hi guys,

One of our users pointed me to an interesting observation, about how Flexsim deals with DST:

In the model attached the first date time display uses FlexSim´s standard functionality, while the second one uses convert(Model.dateTime, FS_DATETIME, DATETIME_STR);

Run the model to the first Stop Time one second before the 2021 change into DST and go on slowly. The Run Time display as well as the upper Date Time display don´t change, while the second Date Time display shows the corrected DST. For some reason, if you run to the next Stop Time, the second Date Time display syncs back with the other two after an hour.

Nothing happens though, when you run to the next Stop Time marking the change from DST back to "regular" time....any thoughts?

Thanks

Ralf

20231006_DST_Bug.fsm

Model is in 23.0 but shows same behavior in 23.2.



FlexSim 23.2.0
datetimedisplaydaylight savingdst
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Ralf Gruber, was Jason Lightfoot'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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Ralf Gruber commented

Thanks for pointing this out Ralf - I've confirmed this issue and am adding the examples for mountain time and gmt for the developers to check,. I'll send in a report.

20231006-dst-bug_Utahzone.fsm

20231006-dst-bug_UKzone.fsm


· 2
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 ·

@Ralf Gruber Note that you can show the adjusted time and zone using:

Model.dateTime.toString("%c %Z %z")

..but in order to see that take effect I need to change the windows system setting and restart FlexSim.

Shouldn't that be a setting in the model, rather than the system, to say the default time zone to use (and have options to display in multiple time zones at once - for global supply chain models) ?

1 Like 1 ·
Ralf Gruber avatar image Ralf Gruber ♦ Jason Lightfoot ♦♦ commented ·
@Jason Lightfoot sounds like a great idea to me.
0 Likes 0 ·