ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

GetCurrentDate component returns incorrect time.

book

Article ID: 172550

calendar_today

Updated On:

Products

Workflow Solution ServiceDesk

Issue/Introduction

GetCurrentDate component does not return server local time as expected.

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

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.