From 514aa266ab7aaf54f28e3b1172bada63b6240f22 Mon Sep 17 00:00:00 2001 From: Christian Holl Date: Mon, 14 Apr 2014 06:03:29 +0200 Subject: [PATCH] Correcting date parsing bug for human readable date. This fixes #11 --- src/FlashAir/card.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):