I was looking for a method or function like Java's java.util.TimeZone.inDaylightTime() which returns true if the given date is in daylight savings time.
I have a custom requirement for a user to enter a Close Date, e.g., 05/31/2021 (step 1) then I need to save this by appending or adding the closing hours 05:30 PM CT (CST/CDT) to the Date (step 2). The final date time should be something like 05/31/2021 05:30 PM. I'm doing something like this in a Data Transform:
But I noticed the Time zone source setting only displays when you select Date/Time "Auto" or "Date Time". If you select "Date" or "Time" then it doesn't show up... Unless there is a way to pre-calculate (preset) the 5:30 PM time once the user selects the Date time control, but then again I would need to pre-calculate this time like the original problem described...
Posted: 1 year ago
Posted: 25 May 2021 18:29 EDT
Jose Navas (josenavas)
@MarissaRogers client agreed to enter time 🙂 so we could use the time zone setting for the Date control:
However, as part of our use case I noticed wrong calculations, depending on the operator's time zone or the standard time zone defined in the business calendar (not sure which one is causing the issue, or both...). For one of my test operators which used time zone America/New_York the calculations were accurate according the CST6CDT time zone I predefined on the control. For my other operator which had time zone CST the calculations were wrong and offset by 5 hours. To fix the issue, I tried setting the time zone (also in Business calendar) of the latter operator to CST6CDT, and that corrected the calculation.
I just wanted to bring that up in case there is a discrepancy between the time zone specified in the control and how it plays along with the operator's time zone, e.g., that combination: CST6CDT and CST.