{"action":"created","issue":{"url":"https://api.github.com/repos/Adphorus/react-date-range/issues/71","repository_url":"https://api.github.com/repos/Adphorus/react-date-range","labels_url":"https://api.github.com/repos/Adphorus/react-date-range/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/Adphorus/react-date-range/issues/71/comments","events_url":"https://api.github.com/repos/Adphorus/react-date-range/issues/71/events","html_url":"https://github.com/Adphorus/react-date-range/issues/71","id":176600099,"number":71,"title":"update Locale weeddaysMin use only 1 character","user":{"login":"phattranky","id":6443154,"avatar_url":"https://avatars.githubusercontent.com/u/6443154?v=3","gravatar_id":"","url":"https://api.github.com/users/phattranky","html_url":"https://github.com/phattranky","followers_url":"https://api.github.com/users/phattranky/followers","following_url":"https://api.github.com/users/phattranky/following{/other_user}","gists_url":"https://api.github.com/users/phattranky/gists{/gist_id}","starred_url":"https://api.github.com/users/phattranky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phattranky/subscriptions","organizations_url":"https://api.github.com/users/phattranky/orgs","repos_url":"https://api.github.com/users/phattranky/repos","events_url":"https://api.github.com/users/phattranky/events{/privacy}","received_events_url":"https://api.github.com/users/phattranky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-13T10:04:02Z","updated_at":"2016-12-05T02:31:08Z","closed_at":null,"body":"I have a design like this\n\n![image](https://cloud.githubusercontent.com/assets/6443154/18469672/3f8a06c8-79d3-11e6-8c25-d40387b42238.png)\n\nWhen use moment update locale. Everything working well. But the weekdaysMin you use as the React key, so i got the duplicate key problem S (Sunday) - S (Saturday), T (Tuesday) - T (Thursday).\n\n```\nmoment.updateLocale('en', {\n      months: [\n        'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul',\n        'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n      ],\n      weekdaysMin: ['S', 'M', 'T', 'W', 'T', 'F', 'S']\n    });\n```\n\nCould you replace the key with loop index. I think it's better.\n\nLine 130 - 131 of Calendar.js\n\n```\n    for (let i = dow; i < 7 + dow; i++) {\n      const day = moment.weekdaysMin(i);\n\n      weekdays.push(\n        <span style={onlyClasses ? undefined : styles['Weekday']} className={classes.weekDay} key={day}>{day}</span>\n      );\n    }\n```\n\nThanks and best regards!\n"},"comment":{"url":"https://api.github.com/repos/Adphorus/react-date-range/issues/comments/264754679","html_url":"https://github.com/Adphorus/react-date-range/issues/71#issuecomment-264754679","issue_url":"https://api.github.com/repos/Adphorus/react-date-range/issues/71","id":264754679,"user":{"login":"phattranky","id":6443154,"avatar_url":"https://avatars.githubusercontent.com/u/6443154?v=3","gravatar_id":"","url":"https://api.github.com/users/phattranky","html_url":"https://github.com/phattranky","followers_url":"https://api.github.com/users/phattranky/followers","following_url":"https://api.github.com/users/phattranky/following{/other_user}","gists_url":"https://api.github.com/users/phattranky/gists{/gist_id}","starred_url":"https://api.github.com/users/phattranky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phattranky/subscriptions","organizations_url":"https://api.github.com/users/phattranky/orgs","repos_url":"https://api.github.com/users/phattranky/repos","events_url":"https://api.github.com/users/phattranky/events{/privacy}","received_events_url":"https://api.github.com/users/phattranky/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T02:31:08Z","updated_at":"2016-12-05T02:31:08Z","body":"@burakcan \r\n\r\nSorry about reply too late. I was on holiday. Ok, i will create a Pull Request soon."}}
{"actor":{"display_login":"phattranky"}}