dfeinzimer / beepboopbackend

CSUF CPSC 476 Spring 2019 - Back-End Engineering
0 stars 0 forks source link

pubDate broken #12

Closed dfeinzimer closed 5 years ago

dfeinzimer commented 5 years ago

In api/bff.py -> In the summary feed pubDate is not working.

pubDate = datetime.datetime.strptime(x['article_date'], "%m/%d/%Y").strftime("%a, %d %b %Y%H:%M:%S %Z")`

yroush commented 5 years ago

All date fields in the database should be in format MM/DD/YYYY.

in python, the %Y refers to the year in YYYY format.

Fixed and will push changes to database fill script.