Permalink
Browse files

Use strftime as a method.

  • Loading branch information...
1 parent 3c2d0b3 commit d9db4aa0bd094392b0d01ab497ca73afc894e125 @pcapriotti committed Aug 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 pledger/template.py
View
2 pledger/template.py
@@ -90,7 +90,7 @@ def print_entry(self, entry):
components = entry.entry.amount.components(currencies)
total_components = entry.total.components(currencies)
yield u"%s %s %s %s %s" % (
- self.lpad(datetime.strftime(entry.date, "%y-%b-%d"), 9),
+ self.lpad(entry.date.strftime("%y-%b-%d"), 9),
self.print_label(entry.transaction, 34),
self.print_account(entry.entry.account),
self.print_value(components[0]),

0 comments on commit d9db4aa

Please sign in to comment.