localize recording dates

This commit is contained in:
Zachary Chai 2016-11-03 17:24:04 -04:00
parent bea502a5a2
commit f40d0ee65b
2 changed files with 3 additions and 2 deletions

View File

@ -186,7 +186,8 @@
data.recordings[i].duration = totalMinutes;
data.recordings[i].start_time = new Date(data.recordings[i].start_time)
.toLocaleString([], {month: 'long', day: 'numeric', year: 'numeric', hour12: 'true', hour: '2-digit', minute: '2-digit'});
.toLocaleString($('html').attr('lang'),
{month: 'long', day: 'numeric', year: 'numeric', hour12: 'true', hour: '2-digit', minute: '2-digit'});
}
table.clear();
table.rows.add(data.recordings);

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="<%= I18n.locale %>">
<head>
<title>Greenlight</title>
<%= csrf_meta_tags %>