Skip to content

Commit

Permalink
Datetime Hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Anja Zimmermann committed Sep 4, 2021
1 parent 53347de commit 9645aea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ def save_insemination(eartag, date_str):

def repeat_insemination_info(eartag, date_str, kuhname):
eartag = prep_eartag(eartag)
#locale.setlocale(locale.LC_TIME, "de_DE")
#date_str = datetime.datetime.strptime(date_str, '%Y-%m-%d')
locale.setlocale(locale.LC_TIME, "de_DE")
date_str = date_str[:10]
date_str = datetime.datetime.strptime(date_str, '%Y-%m-%d')
return f"Die Kuh {kuhname} wurde am {date_str} besamt. Soll ich das so speichern?"


Expand Down

0 comments on commit 9645aea

Please sign in to comment.