GetCurrentDate component returns incorrect time.
search cancel

GetCurrentDate component returns incorrect time.

book

Article ID: 172550

calendar_today

Updated On:

Products

Workflow Solution IT Management Suite

Issue/Introduction

GetCurrentDate component does not return server local time as expected.

For example, in CEST timezone a time 2 hours behind is returned.

Environment

Workflow Solution 7.x, 8.x

Cause

GetCurrentDate returns the current date and time in UTC.

In the example, CEST timezone is UTC +2, resulting in the 2-hour difference.

Resolution

​This is intended behaviour and in line with Workflow internally handing all the times in UTC. This is to facilitate processes to work properly regardless of the timezone of server or users.