Skip to content

Commit c848eb6

Browse files
xARSENICxronso0
andauthored
Update dlgpreflibrary.cpp
Co-authored-by: ronso0 <ronso0@mixxx.org>
1 parent 6f83577 commit c848eb6

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/preferences/dialog/dlgpreflibrary.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -840,13 +840,7 @@ void DlgPrefLibrary::slotDateFormatChanged(const QString& text) {
840840
}
841841

842842
// Update Preview
843-
QDate exampleDate = QDate::currentDate();
844-
QString previewStr;
845-
if (format.isEmpty()) {
846-
previewStr = QLocale().toString(exampleDate, QLocale::ShortFormat);
847-
} else {
848-
previewStr = exampleDate.toString(format);
849-
}
843+
const QString previewStr = mixxx::formatDate(QDate::currentDate(), format);
850844
label_dateFormatPreview->setText(previewStr);
851845

852846
m_pConfig->setValue(kDateFormatConfigKey, format);

0 commit comments

Comments
 (0)