Commit 77334780 by Kálmán Viktor

dashboard: remove unused store_tags file

parent 9890bbc0
from datetime import datetime
from django import template
from django.utils.timesince import timesince
register = template.Library()
def bytes_to_megabytes(size):
if size:
return size / (1024 * 1024)
return 0
def timestamp_to_date(timestamp):
date = datetime.fromtimestamp(float(timestamp))
if ( - date).days < 1:
date = timesince(date)
return date
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment