Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Server time running fast? Updating a variable in a loop

    Posted 07-25-2019 18:14
    No replies, thread closed.
    Hi there I have two questions.

    Has anyone else noticed that the server clock seems to be running about 2 minutes fast? I have been playing around with the servertime before and it seemed to be accurate. Now it always seems to be about 2 minutes fast.

    In a Update Data block I'm assigning a variable Flow.LocalDateTime to date variable and using an example date time example.

    AddMinutes(Flow.StartDateTimeUtc,
    (If(Flow.StartDateTimeUtc >= GetDayOfWeekOccurrence(1,2,Year(Flow.StartDateTimeUtc),3,7,0,0)
    and Flow.StartDateTimeUtc <= GetDayOfWeekOccurrence(1,1,Year(Flow.StartDateTimeUtc),11,8,0,0),
    -420,
    -480)
    )
    )

    About a week ago it seemed fine. 

    Second related question is with loops. I have an In Queue treatment that I want to play hold music for one minute and then loop up and check the current time. When I queue I hear the initial time, but if I stay on the line for a few minutes that value never seems to increment. I though the Update Data block 14 would handle that but am I missing something? The Play Audio block 15 always plays back the same time

    #Implementation
    #Telephony

    ------------------------------
    Paul Dittrich
    ------------------------------


  • 2.  RE: Server time running fast? Updating a variable in a loop

    Posted 07-26-2019 13:04
    No replies, thread closed.
    Regarding clock skew, you might get some insights based on this article on the Developer Center:

    Calculating Client-Server Clock Skew



    ------------------------------
    George Ganahl CCXP, GCP
    Principal Technology Consultant
    Genesys
    ------------------------------