Windows compatibility: strftime doesn't have %F

Replace %F with %Y-%m-%d, as Windows' strftime does not
support %F, so we should not rely on it being available.
This commit is contained in:
Thomas Perl 2013-04-06 11:29:30 +02:00
parent 9258fd0b22
commit f344edc484
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ class PodcastEpisode(PodcastModelObject):
@property
def sortdate(self):
return self.published_datetime().strftime('%F')
return self.published_datetime().strftime('%Y-%m-%d')
@property
def pubdate_day(self):