Open marianaibarra opened 1 year ago
same problem here, the only solution at the moment was removing the locale('es'), before any formatting
I've been facing the same issue with 'Enero', 'Abril', 'Agosto' and 'Diciembre'. I suspect it's because they are a little different from its English translations. As @rataprens said, removing the locale('es') works, but in my case I was still receiving formatted data with locale('es'). To solve it I have used String + Format since I knew how the date data arrived. I hope it helps you too.
Describe the bug I'm trying to format a date with the month "agosto" (august), with the format YYYY-MM-DD and it gives an invalid date error. It works fine with other months except august.
Information