The Instagram API return a created_time
field attached to each media (example of API response here).
The value of this field is a simple timestamp. My question is : In which timezone is it ? I need this information to convert the timezone in Europe/Paris, if needed, before store it in my database (I assumed that all date related datas in my database are in Europe/Paris).
Thank you !
The date is in UTC so you can easily convert this to your locale. However if you want to know the local time of the place where the picture was taken then I think you would need to get the timezone from the longitude and latitude of the location attribute in the
/media/search
endpoint.EDIT: This is the function I ended up creating:
Based upon this article: rough estimate of the time offset from GMT from latitude longitude