Api 1.2.2 LastUpdated filter time zone issue

cstrombecstrombe Registered Users Posts: 5 Beginner grinner
I'm trying to figure out how to use the api and this filter and am confused by some time zone issues as far as I can tell. Here is the situation:

I upload a new image to an album at 4:29pm CST
I then do a smugmug.albums.get on the album, and the LastUpdated time returned is "2010-03-22 14:29:08", which would agree with the time I uploaded (this is the PST for my 4:29pm CST). That's all making sense. However, when I try to use the LastUpdated filter on the albums.get call, it seems like the LastUpdated parameter is off. Through trial and error I found that a LastUpdated value of 1269268148 returned the album, and if I go one second more, it does not return the album, so that is the cutoff that matches my upload. If I convert that epoch time to a readable time, it comes out to 14:29:08 GMT. So it seems like the LastUpdated filter is using the PST time value as a GMT time. In other words, the LastUpdated filter is off by 7 hours.

I'm no time zone expert, so maybe I'm missing something. Can anyone explain what I'm doing wrong, or if I am not interpreting these times correctly?

Thanks,
Chris

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 22, 2010
    epochs and timezone can get confusing...so typically I use this page for validation... http://www.epochconverter.com/

    can you please get me the AlbumID of the Album in question, so I can take a look.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 22, 2010
    yes, there was a bug, it's been fixed internally.

    Thanks,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • cstrombecstrombe Registered Users Posts: 5 Beginner grinner
    edited March 22, 2010
    devbobo wrote:
    yes, there was a bug, it's been fixed internally.

    Thanks,

    David

    Wow, that's great, thanks David. I'll give it a try.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 22, 2010
    cstrombe wrote:
    Wow, that's great, thanks David. I'll give it a try.

    sorry, the fix isn't live yet....but should go sometime this week.
    David Parry
    SmugMug API Developer
    My Photos
  • cstrombecstrombe Registered Users Posts: 5 Beginner grinner
    edited March 22, 2010
    devbobo wrote:
    sorry, the fix isn't live yet....but should go sometime this week.

    Ah, ok. Thanks for the update.
Sign In or Register to comment.