]> gitweb.pimeys.fr Git - bots/historien.git/commitdiff
Il y a des dates à 3 chiffres
authorVincent Le Gallic <legallic@crans.org>
Fri, 25 May 2012 08:51:15 +0000 (10:51 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 25 May 2012 08:51:15 +0000 (10:51 +0200)
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