diff --git a/src/FlashAir/card.py b/src/FlashAir/card.py index 76ede75..0d42895 100644 --- a/src/FlashAir/card.py +++ b/src/FlashAir/card.py @@ -44,7 +44,7 @@ def __init__(self, file_name, directory_name, size, attributes, date, time): date=int(date) self.date=date; - self.date_human=(((date&(0x3F<<9))>>9)+1980,((date&(0x1F<<5))>>5),date&(0x1F)) + self.date_human=(((date&(0x3F<<9))>>9)+1980,((date&(0xF<<5))>>5),date&(0x1F)) class command(object):