Skip to content

Commit

Permalink
strftime can't handle 2 digit year on windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
bri3d committed Dec 2, 2021
1 parent 4c873d0 commit e81fa5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/workshop_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ def as_bytes(self):
return bytes

def human_readable(self):
fingerprint = "Block fingerprint dated "
fingerprint += self.flash_date.strftime("'%y %B %d")
fingerprint = "Block fingerprint dated '"
fingerprint += str(self.flash_date.year)
fingerprint += self.flash_date.strftime(" %B %d")
if self.is_valid:
fingerprint += " is valid and was written by SimosTools or VW_Flash. "
elif self.is_old:
Expand Down

0 comments on commit e81fa5c

Please sign in to comment.