]> gitweb.pimeys.fr Git - bots/historien.git/blobdiff - historien.py
Il y a des dates à 3 chiffres
[bots/historien.git] / historien.py
index d916e75248481e291b30c3f07ba2279a0c675b1f..df9b99c81cf546ddcdef6af05ab955d44405b5f5 100755 (executable)
@@ -88,7 +88,7 @@ def reussi(message,answer,auteur):
             print tuple(date)
         except ThisIsNotADate:
             return False
-        as_string="%02d/%02d/%d"%(date[2],date[1],date[0])
+        as_string="%02d/%02d/%04d"%(date[2],date[1],date[0])
         print as_string
         if as_string==answer:
             return True