Hello dear community,
I have observe what appears to me an unexpected behaviour with the Clock component, specifically with the MakeInstantFromParts method.
I need to convert a given UTC date/time string (YYYYMMDDhhmmss) to a Clock instant or, if that doesn't work, a Unix epoch.
The data I'm working with originates from an embedded device with limited resources so I cannot convert it there.
By using a UTC timestamp, I had hoped that I wouldn't need to deal with time zones and DST.
So, I chose the MakeInstantFromParts method because it seemed to fit my intention - its description says "Returns an instant in time specified [...] in UTC".
However, I observed that in my case, it interprets the given information with my local time zone and DST. I suspect that this behaviour fits most users' needs.
Is there a way to circumvent this issue without having to deal with my local time zone? Or is there a possibility that a new method "MakeInstantFromPartsUTC" could be implemented?
In order to visualize this for you, I created the following blocks:
When I enter the resulting Unix timestamp into an online converter tool, I see that it corresponds to the original time, but in my local timezone (UTC+2).
Any help would be appreciated.
Thanks!










