forked from External/greenlight
localize recording dates
This commit is contained in:
parent
bea502a5a2
commit
f40d0ee65b
|
@ -186,7 +186,8 @@
|
||||||
data.recordings[i].duration = totalMinutes;
|
data.recordings[i].duration = totalMinutes;
|
||||||
|
|
||||||
data.recordings[i].start_time = new Date(data.recordings[i].start_time)
|
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.clear();
|
||||||
table.rows.add(data.recordings);
|
table.rows.add(data.recordings);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="<%= I18n.locale %>">
|
||||||
<head>
|
<head>
|
||||||
<title>Greenlight</title>
|
<title>Greenlight</title>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
|
|
Loading…
Reference in New Issue