фикс профиля
This commit is contained in:
parent
277f044400
commit
d828234dbe
@ -544,7 +544,8 @@ const formatDate = (dateString) => {
|
||||
const formatShortDate = (dateString) => {
|
||||
if (!dateString) return '';
|
||||
const date = new Date(dateString);
|
||||
return `${date.getMonth() + 1}.${date.getFullYear()}`;
|
||||
// Возвращаем дату в формате дд.мм.гггг
|
||||
return `${date.getDate().toString().padStart(2, '0')}.${(date.getMonth() + 1).toString().padStart(2, '0')}.${date.getFullYear()}`;
|
||||
};
|
||||
|
||||
const handleProfileUpdate = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user