mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Fixed bug with video player
This commit is contained in:
parent
fc96d4dad1
commit
4cc07995a2
@ -1,4 +1,4 @@
|
|||||||
import globalize, { getCurrentDateTimeLocale } from './globalize';
|
import globalize from './globalize';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
/* eslint-disable indent */
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ import globalize, { getCurrentDateTimeLocale } from './globalize';
|
|||||||
hours = Math.floor(hours);
|
hours = Math.floor(hours);
|
||||||
|
|
||||||
if (hours) {
|
if (hours) {
|
||||||
parts.push(toLocaleString(hours));
|
parts.push(hours.toLocaleString(globalize.getCurrentDateTimeLocale()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ticks -= (hours * ticksPerHour);
|
ticks -= (hours * ticksPerHour);
|
||||||
@ -95,9 +95,9 @@ import globalize, { getCurrentDateTimeLocale } from './globalize';
|
|||||||
ticks -= (minutes * ticksPerMinute);
|
ticks -= (minutes * ticksPerMinute);
|
||||||
|
|
||||||
if (minutes < 10 && hours) {
|
if (minutes < 10 && hours) {
|
||||||
minutes = toLocaleString(0) + toLocaleString(minutes);
|
minutes = (0).toLocaleString(globalize.getCurrentDateTimeLocale()) + minutes.toLocaleString(globalize.getCurrentDateTimeLocale());
|
||||||
} else {
|
} else {
|
||||||
minutes = toLocaleString(minutes);
|
minutes = minutes.toLocaleString(globalize.getCurrentDateTimeLocale());
|
||||||
}
|
}
|
||||||
parts.push(minutes);
|
parts.push(minutes);
|
||||||
|
|
||||||
@ -105,9 +105,9 @@ import globalize, { getCurrentDateTimeLocale } from './globalize';
|
|||||||
seconds = Math.floor(seconds);
|
seconds = Math.floor(seconds);
|
||||||
|
|
||||||
if (seconds < 10) {
|
if (seconds < 10) {
|
||||||
seconds = toLocaleString(0) + toLocaleString(seconds);
|
seconds = (0).toLocaleString(globalize.getCurrentDateTimeLocale()) + seconds.toLocaleString(globalize.getCurrentDateTimeLocale());
|
||||||
} else {
|
} else {
|
||||||
seconds = toLocaleString(seconds);
|
seconds = seconds.toLocaleString(globalize.getCurrentDateTimeLocale());
|
||||||
}
|
}
|
||||||
parts.push(seconds);
|
parts.push(seconds);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user