File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
apps/settings/js/settings Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ module.exports = {
66 $ : true ,
77 moment : true ,
88 escapeHTML : true ,
9- oc_userconfig : true
9+ oc_userconfig : true ,
10+ dayNames : true ,
11+ firstDay : true
1012 } ,
1113 extends : [ 'nextcloud' ]
1214}
Original file line number Diff line number Diff line change @@ -369,11 +369,9 @@ $(document).ready(function () {
369369} ) ;
370370
371371window . setInterval ( function ( ) {
372- $ ( '#localeexample-time' ) . text ( moment ( ) . format ( 'LTS' ) ) ;
373- $ ( '#localeexample-date' ) . text ( moment ( ) . format ( 'L' ) ) ;
374- $ ( '#localeexample-fdow' ) . text ( t ( 'settings' , 'Week starts on {fdow}' ,
375- { fdow : moment ( ) . weekday ( 0 ) . format ( 'dddd' ) } ) ) ;
376-
377- } , 1000 ) ;
372+ $ ( '#localeexample-time' ) . text ( moment ( ) . format ( 'LTS' ) )
373+ $ ( '#localeexample-date' ) . text ( moment ( ) . format ( 'L' ) )
374+ $ ( '#localeexample-fdow' ) . text ( t ( 'settings' , 'Week starts on {fdow}' , { fdow : dayNames [ firstDay ] } ) )
375+ } , 1000 )
378376
379377OC . Settings . updateAvatar = updateAvatar ;
You can’t perform that action at this time.
0 commit comments