Time Zone for LastUpdated field?

mattwrightmattwright Registered Users Posts: 124 Major grins
Hi,

LastUpdated returns a time stamp, but no time zone is specified (for calls like albums.get and images.get). What time zone is this date/time generated in? Thanks,

Matt

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 23, 2009
    mattwright wrote:
    Hi,

    LastUpdated returns a time stamp, but no time zone is specified (for calls like albums.get and images.get). What time zone is this date/time generated in? Thanks,

    Matt

    Hey Matt,

    Sorry about the delayed response.

    All timestamps are in PDT.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • mattwrightmattwright Registered Users Posts: 124 Major grins
    edited January 26, 2009
    devbobo wrote:
    All timestamps are in PDT.
    Thanks David!
  • frbfrb Registered Users Posts: 18 Big grins
    edited March 18, 2009
    devbobo wrote:
    Hey Matt,

    Sorry about the delayed response.

    All timestamps are in PDT.

    Cheers,

    David

    David,

    Can I request that you include the timezone in the returned LastUpdated field, so that php's strtotime() knows what timezone it is working with, and therefore automatically converts the timestam to align with the (remote) server's timezone.

    This means we dont have to do it manually in the php code, and also means that the timestamp behaviour in the API is the same as the timestamp behaviour in the feeds (which do include a timezone).

    Thanks
    Felix
  • frbfrb Registered Users Posts: 18 Big grins
    edited March 18, 2009
    Actually, can I request you return a proper timestamp?

    http://www.faqs.org/rfcs/rfc2822

    so instead of 2009_03_17 05:02:42

    perhaps

    March 17 2009 05:02:42 PDT

    Would be most appropritate?
Sign In or Register to comment.