Skip to content

Commit

Permalink
Merge pull request #3 from andela-ookoro/morphBranch
Browse files Browse the repository at this point in the history
update date format
  • Loading branch information
andela-ookoro committed Oct 31, 2017
2 parents a41df26 + 9489337 commit e5b4674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions healthtools/scrapers/clinical_officers.py
Expand Up @@ -26,9 +26,9 @@ def elasticsearch_format(self, entry):
:return: dictionaries of the entry's metadata and the formatted entry
"""
try:
date_obj = datetime.strptime(entry["reg_date"], "%Y-%m-%d %H:%M")
date_obj = datetime.strptime(entry["reg_date"],"%Y-%m-%d %H:%M")
except:
date_obj = datetime.strptime(entry["reg_date"], "%d-%m-%Y %H:%M")
date_obj = datetime.strptime(entry["reg_date"], "%d-%m-%y %H:%M")
entry["reg_date"] = datetime.strftime(
date_obj, "%Y-%m-%dT%H:%M:%S.000Z")
# all bulk data need meta data describing the data
Expand Down

0 comments on commit e5b4674

Please sign in to comment.