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:
parent
9258fd0b22
commit
f344edc484
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue