fix for date formatting issue (#3693)

This commit is contained in:
sam-io 2016-10-04 16:41:39 +01:00 committed by Paulus Schoutsen
parent 2cf49f3de6
commit 85782f9c29

View file

@ -104,7 +104,7 @@ class EmailReader:
self.connection.select() self.connection.select()
if len(self._unread_ids) == 0: if len(self._unread_ids) == 0:
search = "SINCE {0:%d-%b-%y}".format(datetime.date.today()) search = "SINCE {0:%d-%b-%Y}".format(datetime.date.today())
if self._last_id is not None: if self._last_id is not None:
search = "UID {}:*".format(self._last_id) search = "UID {}:*".format(self._last_id)