style: add 2-digit year to calendar date display
All checks were successful
Build and Deploy / build-and-push (push) Successful in 53s

- Updated the DateRangePicker component to display the date in DD/MM/YY format (e.g. 18/03/26) instead of just DD/MM for better clarity.
This commit is contained in:
Cauê Faleiros
2026-03-18 09:39:55 -03:00
parent 47799990e3
commit 64c4ca8fb5

View File

@@ -20,7 +20,7 @@ export const DateRangePicker: React.FC<DateRangePickerProps> = ({ dateRange, onC
}; };
const formatShortDate = (date: Date) => { const formatShortDate = (date: Date) => {
return date.toLocaleDateString('pt-BR', { day: '2-digit', month: '2-digit', timeZone: 'America/Sao_Paulo' }); return date.toLocaleDateString('pt-BR', { day: '2-digit', month: '2-digit', year: '2-digit', timeZone: 'America/Sao_Paulo' });
}; };
const parseLocalDate = (value: string) => { const parseLocalDate = (value: string) => {