Tell me more ×
SmugMug Stack Exchange is a question and answer site for SmugMug developers and end users. It's 100% free, no registration required.

I invoke method smugmug.albums.get and get a time in a very confusing timezone in response in LastUpdated field. Neither Greenwich (that is used for LastUpdated field in request), nor my local. For a moment of writing this issue, it is Greenwich minus 8 hours.

How can I deal with this time properly ?

share|improve this question
Lol, nobody seems to know! Maybe the easier option would be to upload something as you make a note of the time and calculate it yourself, looking up the difference in a table should be pretty straightforward – HaavardH Jun 12 '12 at 9:40

2 Answers

From my testing, it is the Pacific Timezone. Where it gets confusing is that, depending on the time of year it is either Pacific Standard Time (GMT-8hrs) or Pacific Daylight Time (GMT -7hrs). Since currently (June) daylight time is in effect, LastUpdated would be GMT-7hrs. In December it would be GMT-8hrs. I would prefer if the ISO-8601 format was used, which includes the GMT offset. That way there is no guessing as to what GMT offset the time is being presented in. For example, in ISO-8601 "2012-06-28T08:30:10-08:00" corresponds to June 28 2012, 8:30:10am GMT-8hrs.

share|improve this answer

According to a comment on an older API revision, the timezone used in LastUpdated is PDT (Pacific Time), which is the timezone SmugMug is located in. That seems to match with the results you received.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.