summaryrefslogtreecommitdiffstats
path: root/pykolab/tests/create-contacts.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-23 00:45:15 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-23 00:45:15 +0100
commit74d1d469d6c26e449daa03a6d00689d1d2d7b3ae (patch)
treed7e2352dd301a4bea4dac8422f11db70ea3c364b /pykolab/tests/create-contacts.py
parentc260a62c276fbcea14a95b6e515497a25039475f (diff)
downloadpykolab-74d1d469d6c26e449daa03a6d00689d1d2d7b3ae.tar.gz
Make sure we are using double digits
Diffstat (limited to 'pykolab/tests/create-contacts.py')
-rw-r--r--pykolab/tests/create-contacts.py4
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 = ""