From 74d1d469d6c26e449daa03a6d00689d1d2d7b3ae Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Sat, 23 Oct 2010 00:45:15 +0100 Subject: Make sure we are using double digits --- pykolab/tests/create-contacts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pykolab/tests') diff --git a/pykolab/tests/create-contacts.py b/pykolab/tests/create-contacts.py index 78feda2..caff1b0 100644 --- a/pykolab/tests/create-contacts.py +++ b/pykolab/tests/create-contacts.py @@ -48,8 +48,8 @@ if __name__ == "__main__": birthday = "" if random.randint(0,100) >= 75: year = str(random.randint(1960, 2010)) - month = str(random.randint(1,12)) - day = str(random.randint(1,27)) + month = str(random.randint(1,12)).zfill(2) + day = str(random.randint(1,27)).zfill(2) birthday = "%s-%s-%s" % (year, month, day) middle_names = "" -- cgit v1.1