@@ -1404,10 +1404,10 @@ tvheadend.toCustomDate = function(date, format) {
14041404 } ;
14051405
14061406 format = format . replace ( / ( % [ y Y ] + ) / , ( date . getFullYear ( ) + "" ) . substr ( 5 - RegExp . $1 . length ) )
1407- . replace ( / ( % M M M M ) / , date . toLocaleDateString ( toLocaleFormat ( ) , { month : 'long' } ) )
1408- . replace ( / ( % M M M ) / , date . toLocaleDateString ( toLocaleFormat ( ) , { month : 'short' } ) )
1409- . replace ( / ( % d d d d ) / , date . toLocaleDateString ( toLocaleFormat ( ) , { weekday : 'long' } ) )
1410- . replace ( / ( % d d d ) / , date . toLocaleDateString ( toLocaleFormat ( ) , { weekday : 'short' } ) ) ;
1407+ . replace ( / ( % M M M M ) / , date . toLocaleDateString ( tvheadend . toLocaleFormat ( ) , { month : 'long' } ) )
1408+ . replace ( / ( % M M M ) / , date . toLocaleDateString ( tvheadend . toLocaleFormat ( ) , { month : 'short' } ) )
1409+ . replace ( / ( % d d d d ) / , date . toLocaleDateString ( tvheadend . toLocaleFormat ( ) , { weekday : 'long' } ) )
1410+ . replace ( / ( % d d d ) / , date . toLocaleDateString ( tvheadend . toLocaleFormat ( ) , { weekday : 'short' } ) ) ;
14111411
14121412 for ( const k in o ) {
14131413 if ( new RegExp ( "(" + k + ")" ) . test ( format ) ) {
@@ -1426,7 +1426,7 @@ tvheadend.toCustomDate = function(date, format) {
14261426 second : '2-digit' ,
14271427 hour12 : false
14281428 } ;
1429- return date . toLocaleString ( toLocaleFormat ( ) , options ) ;
1429+ return date . toLocaleString ( tvheadend . toLocaleFormat ( ) , options ) ;
14301430 }
14311431} ;
14321432
0 commit comments