Commit dc19eeed5e569bbdcf7a1a9aec18179ca60620bc

Authored by Andrew Buss
1 parent 29c4330965
Exists in master

replaced strftime with something more cross platform(?)

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

flashcards/models.py View file @ dc19eee
... ... @@ -283,7 +283,8 @@
283 283  
284 284 @property
285 285 def short_start_time(self):
286   - return self.start_time.strftime('%-I %p')
  286 + # lstrip 0 because windows doesn't support %-I
  287 + return self.start_time.strftime('%I %p').lstrip('0')
287 288  
288 289 class Meta:
289 290 unique_together = (('section', 'start_time', 'week_day'),)