diff --git a/verticalpreviewwidget.cpp b/verticalpreviewwidget.cpp index a4cf490..a31e6bb 100644 --- a/verticalpreviewwidget.cpp +++ b/verticalpreviewwidget.cpp @@ -36,9 +36,9 @@ void VerticalPreviewWidget::updatePreviewContent(const QModelIndex &index) ui->typeAndSizeLabel->setText(QString("%1 - %2").arg(mimeTypeDisplayName, this->locale().formattedDataSize(info.size()))); - ui->createdAtLabel->setText(info.birthTime().toString(tr("yyyy/MM/dd hh:mm:ss", "Qt string format"))); - ui->lastUpdateLabel->setText(info.lastModified().toString(tr("yyyy/MM/dd hh:mm:ss", "Qt string format"))); - ui->lastAccessLabel->setText(info.lastRead().toString(tr("yyyy/MM/dd hh:mm:ss", "Qt string format"))); + ui->createdAtLabel->setText(QLocale().toString(info.birthTime(), QLocale::LongFormat)); + ui->lastUpdateLabel->setText(QLocale().toString(info.lastModified(), QLocale::LongFormat)); + ui->lastAccessLabel->setText(QLocale().toString(info.lastRead(), QLocale::LongFormat)); // ui->formLayout->addRow("Created at:", new QLabel(info.birthTime().toString())); }