I'm building a calendar app, and when scrolling through months, I noticed March came up twice. After verifying I was going through the months correctly, I went and checked the date.toLocaleString function, and noticed something wrong. In my browser console, this came up.

Does date.toLocaleString have a bug, and how can I work around it?