* Added frontend development files/environment * More items-categories related removals * Improvements in pages templates (inc. static pages) * Improvements in video player * Added empty home page message + cta * Updates in media, playlist and management pages * Improvements in material icons font loading * Replaced media & playlists links in frontend dev-env * frontend package version update * chnaged frontend dev url port * static files update * Changed default position of theme switcher * enabled frontend docker container
16 lines
549 B
JavaScript
Executable File
16 lines
549 B
JavaScript
Executable File
import { months as monthList } from '../constants/';
|
|
|
|
export function formatManagementTableDate(date) {
|
|
const day = date.getDate();
|
|
const month = monthList[date.getMonth()].substring(0, 3);
|
|
const year = date.getFullYear();
|
|
const hours = date.getHours();
|
|
const minutes = date.getMinutes();
|
|
const seconds = date.getSeconds();
|
|
let ret = month + ' ' + day + ', ' + year;
|
|
ret += ' ' + (hours < 10 ? '0' : '') + hours;
|
|
ret += ':' + (minutes < 10 ? '0' : '') + minutes;
|
|
ret += ':' + (seconds < 10 ? '0' : '') + seconds;
|
|
return ret;
|
|
}
|