1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-05-05 21:02:24 -04:00
parent e5a4b3813f
commit e65b47e772
19 changed files with 58 additions and 193 deletions

View file

@ -103,6 +103,15 @@
return false;
}();
function toLocaleDateString(date) {
var currentLocale = globalize.getCurrentLocale();
return currentLocale && toLocaleTimeStringSupportsLocales ?
date.toLocaleDateString(currentLocale) :
date.toLocaleDateString();
}
function getDisplayTime(date) {
var currentLocale = globalize.getCurrentLocale();
@ -144,6 +153,7 @@
return {
parseISO8601Date: parseISO8601Date,
getDisplayRunningTime: getDisplayRunningTime,
toLocaleDateString: toLocaleDateString,
getDisplayTime: getDisplayTime
};
});