Legacy Dev Forum Posts

 View Only

Sign Up

Api returns datetime a wrong value

  • 1.  Api returns datetime a wrong value

    Posted 06-05-2025 18:31

    Dario_Garcia | 2024-08-07 18:56:41 UTC | #1

    Hi.

    I am building a script in python that use plaftorm sdk version 203.0.0. When we use: apiclient = PureCloudPlatformClientV2.apiclient.ApiClient().getclientcredentialstoken(CLIENTID,CLIENTSECRET) usersApi = PureCloudPlatformClientV2.UsersApi(apiclient) print(usersApi.getusers(pagesize=100, expand = ['dateLastLogin','lasttokenissued','routingStatus','presence','integrationPresence']))

    I got this strange response on the fields 'datelastlogin, modifieddate, lasttokenissued': { 'datelastlogin': datetime.datetime(2022, 8, 10, 22, 12, 3, tzinfo=tzutc()), ... 'lasttokenissued': {'dateissued': datetime.datetime(2022, 8, 10, 22, 12, 3, tzinfo=tzutc())}, 'presence': {'id': None, 'message': '', 'modified_date': datetime.datetime(2022, 8, 10, 22, 24, 0, 335000, tzinfo=tzutc()), ....,

    }

    Is it as should work? or is something wrong with my script? If it is a bug, shoud I open a case with customer support?

    Regards, SG


    Dario_Garcia | 2024-09-06 21:12:14 UTC | #2

    anyone, any comments?


    system | 2024-10-07 21:12:24 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 27741