I have a wierd case, that confuses the heck out of me.
In this case i have a robot that has been running smoothly for some time. It basically have to calculate a date, using day.of.week
However over night it seems that it changed the culture from EU to US - Making monday 1 instead of 0
How does my robots know which culture to use? is is inherited from Orchestrator or is there some other way that this could change without my interaction?
Hi @Jeppe_Thoftgard_Jakobsen this will definitely have to do with the culture followed by orchestrator. But i think you can use this method and also specify the culture you need to be followed.
Please read below the standard information as per microsoft:-
I assume it is talked about DateTimeVar.DayOfWeek
DayOfWeek is an Enum and Monday is 1 and this is not dependend to any CultureInfo.
see docu ref here:
the culture that is used should be derived from executing Bot CurrentCulture, any changed setting by Api within the code parts or on process level.
Also have a look on this (setting Culture for process level):
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("YourCultureID")
A relationship to Culture comes into picture when it is used for retrieval (e.g. Formats, Calendars etc). As you can see below: