Blue Prism University

last person joined: 19 hours ago 

A Community to discuss and learn more about Blue Prism University and certification.

Expand all | Collapse all

Defer Time Miscalculating?

  • 1.  Defer Time Miscalculating?

    Posted 11-18-2019 21:04
    I'm currently working through the Defer portion of section 9. When I use

    ToDateTime(Today() & " " & LocalTime() + MakeTimeSpan(0,0,5,0))

    I receive the wrong value. When I check the Defer time in the Control panel, I see a time five minutes ahead, but five hours ago. When I hit Evaluate Expression in the Expression Chooser it gives me the correct time, so I have no idea why Defer is appearing as five hours ago. The other DateTimes in the Control panel are the correct times, so I don't think it's a timezone issue or anything.

    Robert Wertz

  • 2.  RE: Defer Time Miscalculating?

    Posted 11-19-2019 13:27
    I believe the Defer time is calculated in UTC time which is probably why your seeing the 5 hours ago issue when you use your LocalTime().  In one of my processes where I use Defer, I calculate it by using Now() + [Hours to Defer] where [Hours to Defer] is a time span = 0.04:00:00 hours.  You'll find for a lot of the time calculations in Blueprism you'll need to use UTC time as your anchor point.

    Matt Palmer
    Business Process Specialist
    Chesapeake Energy

  • 3.  RE: Defer Time Miscalculating?

    Posted 11-19-2019 21:33
    That was my first thought too. The fact that pressing "evaluate expression" returns the proper value is what confuses me. Plus, when I use LocalTime() in the summary field it correctly identifies the time. It's just weird that Defer is the only one of these that seems to be set in UTC and then converted back to EDT.

    Robert Wertz

  • 4.  RE: Defer Time Miscalculating?

    Posted 11-20-2019 03:12
    When you calculate the Time expression using evaluate : It shows you the result in local time as per your PC TZ. However, BP stores everything in the DB in UTC TZ and thats why in control panel you would be able to see the Time in UTC (Which may be 5 hours as per your point.)

    Vivek Goel
    RPA Architect

Welcome to the Blue Prism University Community

This is a space for our users to discuss and learn more about Blue Prism University and certifications. Click the "Join" button above to be alerted to new activity and events happening in this community!

This is not the appropriate place for product questions. Do you have questions about the Blue Prism Product, Decipher, Digital Exchange, or another Blue Prism offering? Check out our list of Tech Chat Communities to find the right place for your discussion.

Foundation TrainingPearson Vue UpdatesBook an Exam

Course: Introduction to Capture

More Info