I am assigning, and comparing, date/time values in 9.1.2. I've noticed that ProcessContext.CurrentTime contains a time zone offset, but any time a value is assigned to a date/time variable the time zone offset is "zeroed out". (We're in the eastern US time zone.)
ProcessContext.CurrentTime=5/1/2012 12:10:12 PM -04:00
Assign Incident_Occurred=ProcessContext.CurrentTime, resulting in
Incident_Occurred=12/8/2011 1:24:00 PM +00:00
The time portion is correct and matches, but the time offset throws things off. Even doing
CalculateDuration(ProcessContext.CurrentTime,NOC_AlertsData.Incident_Occurred,DateTimeUnits.Hours) results in -4 (hours) even though they "are" (or should be) the same time. It also causes issues if using Earliest / Latest in comparison to ProcessContext.CurrentTime.
Why aren't offsets being stored/used consistently?