main
Razmig Sarkissian 2 years ago
parent 64d75e80bd
commit a63abc1acc
  1. 3
      scores/models.py

@ -1,6 +1,7 @@
from django.db import models
from django.utils import timezone
from django.db.models.signals import post_delete
from django.utils.timezone import localtime
import locale
@ -151,7 +152,7 @@ class Match(models.Model):
else :
_hours = int(_seconds / 3600)
if _hours < -1 and self.hasEnded() == False:
return self.date.strftime("%A %d %B à %H:%M")
return localtime(self.date).strftime("%A %d %B à %H:%M")
else :
_seconds = _seconds * -1
_hours = _hours * -1

Loading…
Cancel
Save