Hi,
I am trying to sync the password last set attribute that is read from AD into a ServiceNow attribute.
The challenge I’m facing is that the attribute is in UTC. What would be the best way to convert it into PST. We cannot do a addition or subtraction since Day Light Savings affects the time.
To take a Day Light Saving time in effect you need to implement a Lookup Transform that checks the current month to determine whether to subtract 7 hours (PDT) or 8 hours (PST).
Create a new transform (e.g., “Pacific Time DST Adjuster”) using this structure:
technically, PST is Pacific Standard Time, which is specifically no Daylight Savings Time. PDT is Pacific Daylight Time. if you need your function to be DST-aware, you either have to build out logic to determine whether you’re in DST or not based on the date, or you can update it back and forth twice a year.