Api 1.2.2 LastUpdated filter time zone issue
cstrombe
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
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
0
Comments
can you please get me the AlbumID of the Album in question, so I can take a look.
Cheers,
David
SmugMug API Developer
My Photos
Thanks,
David
SmugMug API Developer
My Photos
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.
SmugMug API Developer
My Photos
Ah, ok. Thanks for the update.