@@ -268,7 +268,7 @@ export default class DayGrid extends InteractiveDateComponent {
html += view.buildGotoAnchorHtml(
date,
{ 'class': 'fc-day-number' },
- date.date() // inner HTML
+ date.format('D') // inner HTML
)
}
@@ -0,0 +1,15 @@
+
+describe('dayNumbers', function() {
+ pushOptions({
+ defaultDate: '2018-01-01'
+ })
+ it('respects locale in month view', function() {
+ initCalendar({
+ defaultView: 'month',
+ locale: 'ar'
+ expect($('td[data-date="2018-01-01"]')).toContainText('١') // an Arabic 1
+})