mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
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:
@@ -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"));
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user