Skip to main content
Kofax

MC Message reception time variable not converted to local time in KTA

Article # 3040625 - Page views: 12

Issue

In a scenario, where you are mapping the Message reception time created variable to a Capture Text field, the timestamp is not converted to local time.  For reference, KTA will localize the time for other values.

In the example below, you will see that the Message Connector Processed time shows 10:24 EST but when viewing this mapped variable in the corresponding job in Validation, it will show as 03:22p UTC time.  

 

2022-02-25_11-22-27.jpg

Cause

This is expected behavior.  As the mapped variable within KTA is a capture field.  The time shown in the Validation example is coming from the KTA server time which in this example was UTC.

 

Solution

There are two potential solutions:

1.  Instead mapping the Message Connector's Message reception time created to a capture field, map this variable to a process variable instead.  This way localization will occur.

2.  Attached is a sample script which can be used in a KTA .NET node.  This script used the TimeZoneInfo.ConvertTimeFromUtc method to convert the time stamp.  As this is a customization, technical support would not provide additional guidance or support this script.  If additional assistance is required for this solution, please engage with your developer(s) or you may contact our Professional services group.

 

Level of Complexity 

Moderate

 

Applies to  

Product Version Build Environment Hardware
KTA All      

References

Add any references to other internal or external articles

 

Article # 3040625
  • Was this article helpful?