Thu, 10 Jul 2008 23:49:12 +0200 <thp@perli.net>
Don't warn the user when timestamp is None * src/gpodder/util.py: Don't warn the user when timestamp is None in gpodder.util.format_date; Thanks to Bernd Schlapsi for reporting this bug (Closes: http://bugs.gpodder.org/show_bug.cgi?id=148) git-svn-id: svn://svn.berlios.de/gpodder/trunk@762 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
parent
c4c346c930
commit
9e486d702f
|
@ -1,3 +1,10 @@
|
|||
Thu, 10 Jul 2008 23:49:12 +0200 <thp@perli.net>
|
||||
Don't warn the user when timestamp is None
|
||||
|
||||
* src/gpodder/util.py: Don't warn the user when timestamp is None in
|
||||
gpodder.util.format_date; Thanks to Bernd Schlapsi for reporting this
|
||||
bug (Closes: http://bugs.gpodder.org/show_bug.cgi?id=148)
|
||||
|
||||
Wed, 09 Jul 2008 12:19:26 +0200 <thp@perli.net>
|
||||
Simply advanced configuration editor, implement usability suggestions
|
||||
|
||||
|
|
|
@ -277,6 +277,9 @@ def format_date(timestamp):
|
|||
Returns None if there has been an error converting the
|
||||
timestamp to a string representation.
|
||||
"""
|
||||
if timestamp is None:
|
||||
return None
|
||||
|
||||
seconds_in_a_day = 60*60*24
|
||||
try:
|
||||
diff = int((time.time()+1)/seconds_in_a_day) - int(timestamp/seconds_in_a_day)
|
||||
|
|
Loading…
Reference in New Issue