diff --git a/templates/index.html b/templates/index.html index 2dd080c..cf01f34 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,7 +13,7 @@ "url": "{{ url_for('get_videos') }}", "dataSrc": "" }, - "order": [[ 2, "asc" ]], + "order": [[ 2, "desc" ]], "columns": [ { "data": "name" }, { "data": "views" }, @@ -55,7 +55,7 @@ } function hr_date(datetz){ - var date = new Date(datetz).toLocaleString(); + var date = new Date(datetz).toLocaleString('en-US'); return date; };