This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def clean_list_record(self, record): | |
| # clean up a record dict | |
| # Item date, in timezone of the photo owner. | |
| # Not sure how to determine what that is, so we'll leave it. | |
| cleaned = {} | |
| cleaned['item_date'] = datetime.datetime.strptime(record['datetaken'], | |
| '%Y-%m-%d %H:%M:%S') | |
| cleaned['item_date'] = cleaned['item_date'].date() | |
| # Posted date, UTC timestamp. | |
| pub_date = datetime.datetime.fromtimestamp( |
NewerOlder