Use long format for DOB

To avoid problems with Calories metric due to
user error like #2584, this was fixed in the past.
Users doesn't seem willing to check this even when
directed to do so as shown in the users forum recently.
This commit is contained in:
Alejandro Martinez
2025-08-31 11:43:42 -03:00
parent 3ff01d36a7
commit 4b6dd0cabd
2 changed files with 2 additions and 2 deletions

View File

@@ -258,7 +258,7 @@ AboutRiderPage::AboutRiderPage(QWidget *parent, Context *context) : QWidget(pare
dob = new QDateEdit(this);
dob->setDate(appsettings->cvalue(context->athlete->cyclist, GC_DOB).toDate());
dob->setCalendarPopup(true);
dob->setDisplayFormat(locale.dateFormat(QLocale::ShortFormat));
dob->setDisplayFormat(locale.dateFormat(QLocale::LongFormat));
sex = new QComboBox(this);
sex->addItem(tr("Male"));

View File

@@ -218,7 +218,7 @@ NewAthletePageUser::NewAthletePageUser
dob = new QDateEdit();
dob->setCalendarPopup(true);
dob->setDisplayFormat(locale.dateFormat(QLocale::ShortFormat));
dob->setDisplayFormat(locale.dateFormat(QLocale::LongFormat));
registerField("user.dob", dob);
sex = new QComboBox();