I'm trying to print the day of the week in full (Monday, Tuesday ...) of a date returned from the database. However, it is always printing with one day less, for example, instead of Monday printing, it is printing Sunday, I wanted to know what I can put in the line below so that it disappears one day and, instead of displaying 'Sunday', display 'Second' and so on.
The date is coming from the bank in the format YYYY-DD-MM. Ex: 2017-03-07, in this case 07/03 is a Tuesday, but for some reason, Second is being displayed at the time of printing the date.
echo JText::sprintf(JHTML::_('date', $item->data_inicio, JText::_("l, ")));