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

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.2.59",
"_release": "1.2.59",
"version": "1.2.61",
"_release": "1.2.61",
"_resolution": {
"type": "version",
"tag": "1.2.59",
"commit": "2089ec993031b303b5c2163fbc5aff5b37056d1f"
"tag": "1.2.61",
"commit": "d28f24510d524454f235f9f83979639e8b0913d6"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",

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
};
});

View file

@ -449,7 +449,7 @@
weekday[6] = globalize.translate('core#OptionSaturdayShort');
var day = weekday[date.getDay()];
date = date.toLocaleDateString();
date = datetime.toLocaleDateString(date);
if (date.toLowerCase().indexOf(day.toLowerCase()) == -1) {
return day + " " + date;