Mercurial > hg > bitsyblog
diff bitsyblog/utils.py @ 45:c228832db770
fix blogme
author | k0s <k0scist@gmail.com> |
---|---|
date | Tue, 24 Nov 2009 19:20:47 -0500 |
parents | 794dac65c9b6 |
children | 6b8ccf6ec819 |
line wrap: on
line diff
--- a/bitsyblog/utils.py Wed Nov 11 19:39:27 2009 -0500 +++ b/bitsyblog/utils.py Tue Nov 24 19:20:47 2009 -0500 @@ -25,5 +25,7 @@ datestamp = datestamp[len(i):] return datetime.datetime(*retval) -def datestamp(date): +def datestamp(date=None): + if date is None: + date = datetime.datetime.now() return date.strftime(timestamp)