Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Include posted time in API

#73

Currently, items in the API (for example the friend shake) don't include the time when the item was posted. This would be helpful when showing mlkshk items ordered by time alongside other sources.

For example, with a timestamp as posted an item may appear as:

{
    "description": null,
    "height": 720,
    "name": "old_woman_gun_pills.jpg",
    "original_image_url": "http://mlkshk.com/r/XPX",
    "permalink_page": "http://mlkshk.com/p/XPX",
    "posted": "2011-03-12T12:04:19Z",
    "title": "Hurricane Grandma.jpg",
    "user_id": 533,
    "user_name": "drewtoothpaste",
    "width": 480
}

It'd be great if the time were present as a UTC time in ISO 8601 format (that's what I usually see in JSON APIs). That is:

timestamp = created.replace(microsecond=0, tzinfo=None).isoformat() + 'Z'

where created is a datetime.datetime.

Reported by Mark Paschal · March 12th, 2011 @ 12:10 PM

State: resolved
Milestone: none
Assigned to: Andre Torrez Andre Torrez

Activity

  1. Andre Torrez
    Andre Torrez
    • State changed from new to resolved

    This is done. In both shared file and friend timeline.

    March 12th, 2011 @ 03:42 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.