| 1 | // Use DMY date format for Moment.js, in accordance with MediaWiki's date formatting routines. |
| 2 | // This affects English only (and languages without localisations, that fall back to English). |
| 3 | // http://momentjs.com/docs/#/customization/long-date-formats/ |
| 4 | /* global moment */ |
| 5 | moment.updateLocale( 'en', { |
| 6 | longDateFormat: { |
| 7 | // Unchanged, but have to be repeated here: |
| 8 | LT: 'h:mm A', |
| 9 | LTS: 'h:mm:ss A', |
| 10 | // Customized: |
| 11 | L: 'DD/MM/YYYY', |
| 12 | LL: 'D MMMM YYYY', |
| 13 | LLL: 'D MMMM YYYY LT', |
| 14 | LLLL: 'dddd, D MMMM YYYY LT' |
| 15 | } |
| 16 | } ); |