Podio timezone

Comments

6 comments

  • Henrik Huhtinen

    I would say your host running the API integration sets the timezone. Might vary though depending if you authenticate as an user or an app. I call "date_default_timezone_set('UTC');" in the beginning of my API scripts. If you want to use a different timezone, just set it in the script?

    0
    Comment actions Permalink
  • Mathieu Smith

    I already set the timezone at the beginning of my script and the issue persist, thanks for the tip, Henrik!

    Do you know if there's any difference on the current timezone between app and user authentication?

    0
    Comment actions Permalink
  • Marek Hruzik

    Hi Mathieu,

    If you authenticate as a user then the timezone in the API request is assumed to be in that user's timezone (account settings).
    If you authenticate as an app then timezone is UTC.

    br
    Marek

     

    1
    Comment actions Permalink
  • Mathieu Smith

    Thanks a lot for your answer, Marek!

    Your answer helped me a lot!

    0
    Comment actions Permalink
  • Mark Cannon

    Marek and Henrik,

    If you call "date_default_timezone_set('UTC');" after the authentication, would it always set the timezone to UTC for either authentication?

    -Mark

    0
    Comment actions Permalink
  • Marek Hruzik

    Hi Mark,

    I am not a php user and I don't know the internals of podio-php. You will have to test it I guess. 

    br
    Marek

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk