[CLOSED] Convert Timezone and Perform Where Clause
Our back end Data base stores everything in GMT. I need to be able to run report where ticket open date is GE to a EST date/time. I have been able to create a computed field that will convert the GMT to EST but that is after the selection is already done so my record selection that is retured is off a bit. Record selection is still based on GMT.
Here is how I computed the date/time for EST but this is after record selection. I would like to do this in the Where clause somehow.
COMPUTE opentimedst/HMDYYS = IF PROBSUMMARYM1.PROBSUMMARYM1.opentimeconvert FROM startdst TO enddst THEN HADD(PROBSUMMARYM1.PROBSUMMARYM1.OPEN_TIME, 'HOUR', -4, 8, 'HMDYYS') ELSE HADD(PROBSUMMARYM1.PROBSUMMARYM1.OPEN_TIME, 'HOUR', -5, 8, 'HMDYYS'); AS 'OPEN TIME'This message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS 7.6 Windows, All Outputs
November 15, 2013, 05:11 PM
nd
Instead of performing your query on the offset database field, why not subtract the appropriate # of hours from the filter?
WHERE ORIGINAL DB_DATETIME_FIELD GE &userSuppliedDateTimewithOffsetApplied