We have an MCR solution to manage emails from customers. Our agents are distributed in groups and work in different time zones like CST, MST, PST, etc. The Genesys and database servers are located in CST zone.
We have a requirement wherein we have to check the email arrival date against a list of predefined holiday list in a custom table. If the date matches then we delay the processing of the email till the next working day else continue with normal processing. For this we have written a stored procedure which gets the email arrival date either from the UCS.INTERACTION table or from the UCS.EMAILIN table searching for the Interaction ID. Now the date returned also consists of time value along with it which is in GMT. And considering the difference between various Zones (GMTCST, GMTMST, GMTPST, etc.) being in the range of hours, the date changes when this timing is around midnight of the above timezones CST, PST etc.
For this we convert the date obtained from the UCS.INTERACTION or the UCS>EMAILIN tables to the date in respective time zones by using the “select newtime” function and then check the converted date against the holiday list. This is also used to calculate the Age of the Email going by the formula
Age of Email = Current Time in Zone Genesys Start time (email arrival time)
The Age of the Email is required to determine which stage of targeting the email should be subjected to.
This is working fine. However, there is a problem of one hour difference in the year when the Daylight Saving Rules are applied and then taken off in a year. We have to check whether the date falls between the period when the Daylight Savings Rule is applicable and accordingly add an extra hour to make the necessary adjustments. Because then the CST becomes CDT and the PST becomes PDT, etc. In the routing strategy we don’t have the CDT and PDT zones to handle with.
At the moment we have hard coded the dates for year 2006 inside the stored procedure to handle this situation. However, this requires that someone has to update the stored procedure manually every year with the correct dates. This increases the dependency of the ssytem and is not an automatic change to avoid any human error.
If anyone who has faced this kind of situation where you have to play around with the Daylight Savings Rule and do the manipulation accordingly, please let me know the best way to handle this