Change OleDateTime in WFM API

We would like to request for the WFM API to start returning the agent states in an TimeZone that contains the daylight savings information instead of the OleDateTime which we currently have. We would like to request this feature because we need to perform timezone conversion and if we receive no timezone or daylight savings information from the WFM API, then we cannot convert to appropriate time zones properly. For more information, please refer to case: 0002660448.

Timezones in the API are communicated as ISO-8601 timestamps in UTC unless indicated otherwise. It is the responsibility of the consuming application to convert the UTC timestamp into the desired localized format.

Can you specify which particular WFM API endpoints as well as specifically what you are trying to accomplish?

PureCloud WFM UIs use the same API endpoints and can display datetime values in local time zone or, for the admin type views, a chosen time zone. There are libraries (e.g., js-joda) that can be utilized to help with conversions.

A limited set of datetime values from the WFM API, as denoted by their names, are returned in the Management Unit time zone. The time zone for the management unit in standard Olson format can be retrieved from the API for the Management Unit object for conversions and in some cases is included in some of the API methods (e.g., POST /api/v2/workforcemanagement/schedules).

1 Like

Hi Jay,

The specific WFM API we are using is to get agent states from the WFM. It's called CfgAgentHolder cfgAgentHolder = cfgService.getAgentByTeam.

I understand that we can use libraries to convert the time zones. However, when the WFM API returns the agent state's time on the daylight savings day we are unclear is that if that time is before Daylight savings or after daylight savings.
For example:

adhAgentState.getWmStartDateTime()---> This is the start time that the WFM API returns is in OleDateTime. The OleDateTime doesn't contain any information on whether the time returning is the daylight savings converted time, and this is where we are facing the problem.

Please let us know if you need any more information.

Thanks,
Sravanika

What API are you using? The endpoints are listed here: https://developer.mypurecloud.com/api/rest/v2/workforcemanagement/

The objects and methods you're describing don't sound like they're from the PureCloud API.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.