diff -r 5606c01d68b2 -r 1c17e47df974 req.py --- a/req.py Thu Jun 10 12:53:21 2010 +0200 +++ b/req.py Thu Jun 10 13:56:52 2010 +0200 @@ -317,7 +317,7 @@ """return a string for a date time according to instance's configuration """ - if date: + if date is not None: if date_format is None: if time: date_format = self.property_value('ui.datetime-format') @@ -330,7 +330,7 @@ """return a string for a time according to instance's configuration """ - if time: + if time is not None: return ustrftime(time, self.property_value('ui.time-format')) return u''