Workflow Soluiton

 View Only
  • 1.  Change to Get Current Date Component

    Posted Jan 09, 2018 04:19 PM

    I'm experimenting with the latest version of Workflow that I can find (8.1.5618.0) and have noticed component "Get Current Date" now returns a UTC datetime.  Previously it returned a datetime based on the server timezone.

    Has anyone else seen this?



  • 2.  RE: Change to Get Current Date Component

    Posted Jan 10, 2018 03:59 AM

    I'll need to upgrade to the latest version to check but a comparison of

    7.6.4383.0

    data[this.outputVariableName] = DateTime.Now;

    8.1.4516.0

    data.set_Item(this.outputVariableName, DateTime.Now);

    I ran it in debug and the datetime matched the server clock.

    I know they did some work with UTC date/times in ProcessManager.

     

    If you use a Code Script component and print DateTime.Now does it work?



  • 3.  RE: Change to Get Current Date Component

    Posted Jan 11, 2018 02:20 PM

    I just checked and using a script component and DateTime.Now returns the localised datetime for the workflow server (eg timezone adjusted). I now have to pass the results from the Get Current Date component through a 'Get Local Time' component to get my localised time it would seem.  Or use that script component.



  • 4.  RE: Change to Get Current Date Component

    Posted Jan 29, 2018 04:02 PM

    Same behaviour in 8.1.5816.0.  I'm thinking this is the new normal which is ok - hopefully this post will help anyone noticing anything peculiar in their dates.

    I can see a product improvement here though - update the Get Current Date component with a check box of 'Return UTC Time' that is unchecked by default.  That way people who upgrade won't notice any difference but will have new functionality available to them.  Or perhaps a new component altogether.