Datepicker only displays Sundays

In a plugin, I’m trying to use a AUI Datepicker inside a Dialog2 but the datepicker only displays Sundays. It’s a basic datepicker with no custom styling and it does this in both IE Edge and Chrome. Has anyone run into this problem and if so, how do you get it to display all the days in the month.