Django's timezone is back since it can't conflict with JsonPickle anymore

This commit is contained in:
Ilan Steemers
2015-06-24 22:57:21 +02:00
parent a44ad57b7a
commit 065f2dc5aa
2 changed files with 12 additions and 20 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class Command(BaseCommand):
else:
status = term.yellow(stat.status)
# format uptime
uptime = (timezone.now() - timezone.make_aware(stat.tob)).total_seconds()
uptime = (timezone.now() - stat.tob).total_seconds()
hours, remainder = divmod(uptime, 3600)
minutes, seconds = divmod(remainder, 60)
uptime = '%d:%02d:%02d' % (hours, minutes, seconds)