Flow Designer Built in Date Convert to String formats are changing time/date in ouput

litchick10
Tera Guru

I have a date field on the Service Catalog form. In the flow designer, I am using the built in "Date to String" functionality (see below). 

The Problem is that date conversion adds 7 hours. Why and how should I fix (subtract time)?

find_real_file.png

find_real_file.png

 

 

1 ACCEPTED SOLUTION

Marcin20
Mega Guru

Hi,

 

The runtime Date/Time values are not localized and appear in the UTC time zone:

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/referenc...

 

Best Regards,

Marcin

 

 

View solution in original post

2 REPLIES 2

Marcin20
Mega Guru

Hi,

 

The runtime Date/Time values are not localized and appear in the UTC time zone:

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/referenc...

 

Best Regards,

Marcin

 

 

litchick10
Tera Guru

Work around was to subtract 1 second from the time (if you subtract 7 hours, it changes to 7 hrs before the field time) then convert to string.