We are working on a migration from v10 on premise to the MT CSF/GHR cloud. One issue i'm running into is with javascript dates. Because it is on the MT server, all the date objects get initialized in UTC. Does anyone know how to get dates to initialize in either the desired timezone or adjust it after creation? We're central time so we switch between GMT-5 and GMT-6 depending on daylight savings time.
We did find the timestamp.getTimeZoneCurrentTimeStamp(timezone) built-in function in IPA but that creates a date string rather than a date and when I try to pass it back into a new Date() function, it tells me it is an invalid date. I'd like to get it as a date object so it can be manipulated.