The dateTime kind should be specified to UTC in the EpochTime function toDateTime. If this is not done, the kind "not specified" is assumed by default which causes the time zone lag to be substracted multiple times on each conversion. I added the specification which fixed the bug.
typos were fixed in the function and variable names.
The dateTime kind should be specified to UTC in the EpochTime function toDateTime. If this is not done, the kind "not specified" is assumed by default which causes the time zone lag to be substracted multiple times on each conversion. I added the specification which fixed the bug.
typos were fixed in the function and variable names.