diff options
Diffstat (limited to 'pykolab/tests')
-rw-r--r-- | pykolab/tests/create-contacts.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 = "" |