Action center return datetime picker incorrect

I Choose datetime picker
Screenshot 2022-12-14 160023
But actions center return datetime values incorrect
Screenshot 2022-12-14 160023_2

How to setting activity correct?

Note: Activities name → Create Form Task
Screenshot 2022-12-14 161007
and Timezone in Orchestrator
Screenshot 2022-12-14 161313

Hi @siriwat_sansom

I guess it is converting the datetime to local or to UTC

check that and use convert to get correct time

cheers

Hi @siriwat_sansom

To fix this issue, you can try the following solutions:

  1. Use the correct datetime format: Ensure that the datetime value is being formatted using the correct format. The default format for datetime values in UiPath is “yyyy-MM-ddTHH:mm:ss”, which represents the year, month, day, hour, minute, and second in a standard ISO-8601 format. If you are using a different format, you can specify it using the “format” argument in the datetime picker’s “ToString” method.
  2. Use the correct time zone: Ensure that the datetime value is being interpreted using the correct time zone. By default, datetime values in UiPath are interpreted using the local time zone of the machine running the Automation. If you are using a different time zone, you can specify it using the “timeZone” argument in the datetime picker’s “ToString” method.