blackfist / CIFGlue

Simple rails app to quickly add indicators to the Collective Intelligence Framework
10 stars 1 forks source link

Date formatting #12

Closed krmaxwell closed 12 years ago

krmaxwell commented 12 years ago

CIF parser will better understand the following format:

YYYY-MM-DDTHH:MM:SSZ

blackfist commented 12 years ago

Is that a literal letter T that you want between the day and the hour? This seems to do the trick: @i.created_at.strftime('%Y-%m-%dT%H:%M:%S%Z') produces "2012-07-03T18:54:04UTC"

I'll make the change as soon as you confirm it.

krmaxwell commented 12 years ago

Correct!

krmaxwell commented 12 years ago

Also see http://stackoverflow.com/questions/1728404/date-format-yyyy-mm-ddthhmmssz#1728437 because I think it should end in Z, not UTC.

blackfist commented 12 years ago

OK. Fixed in 0304524e3c6133e1e6ca19a42b69c77648221468