API Date Time incorrect by 1hour

Comments

2 comments

  • Andreas Haugstrup Pedersen

    Date field values are provided in the timezone of the currently authenticated user. If you authenticate as yourself they are provided as Europe/London -- if you authenticate as the app they are provided as UTC (since the app doesn't have a timezone setting). Instead of print_r use the format method on the datetime object to print your date

    0
    Comment actions Permalink
  • Alex White

    just to clarify are you asking me to set the format in the api request or as part of the php script after the api request?

    At the moment I am requesting the items from podio using a 'sort_by' and 'filter' on the app. I am then iterating through the results and formatting all the results the same way echoing those out.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk