Forum Discussion
Schevus
5 years agoNew Contributor III
I’m running into this problem as well. I need to convert a value obtained from toLocaleDateTimeString() back to a SnapLogic date object in its current timezone, but there doesn’t seem to be any way to maintain or set the timezone when parsing back to a date object. It always reverts to UTC as the timezone, though with the “correct” time from the original timezone. This is really unfortunate.
Does anyone know how to create a new date object (not derived from a datasource with a non-UTC timezone) that is not in UTC time?