mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
e5a4b3813f
commit
e65b47e772
19 changed files with 58 additions and 193 deletions
|
@ -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
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue