Goodreads Developers discussion

bugs > DateTime format of some items?

Comments Showing 1-3 of 3 (3 new)    post a comment »
dateDown arrow    newest »

message 1: by Shawn (new)

Shawn | 23 comments I noticed in review/list.xml some of the date/times are in a format I don't recognize:

started_at: Sat Feb 18 20:04:08 -0800 2012
date_added: Sat Feb 18 20:04:08 -0800 2012
date_updated: Sat Feb 18 20:04:08 -0800 2012

The strangest thing is the year at the end instead of after the day, not sure I've seen that format before.

I see in other areas though, such as notifications, where it appears in a format I expect (and thus can use a canned parsing routine):

created_at: 2012-02-22T08:30:36-08:00

Anyone know if the first group of date/times is a standard format?


message 2: by Michael (new)

Michael Economy (michaeleconomy) The top three are whatever the rails default date => string format is. I can't really tell by glancing over the code if it's a standard.

In notifications, i think it's a legitimate "xmlschema" format, which we probably should have used consistently.

I'd worry that changing the first format will break a lot of clients.

message 3: by Shawn (new)

Shawn | 23 comments Agreed, at this point people would probably break people all over the place :) I wrote a wee bit of code to parse it correctly for my app but I'd never seen it before. Thanks.

back to top