Skip to content

Commit

Permalink
page_load: Use a shorter date format
Browse files Browse the repository at this point in the history
The user doesn't need to know the time zone. It uses their current local time
anyway.
  • Loading branch information
lmoureaux committed Jul 30, 2022
1 parent 1e98236 commit ec28f52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/page_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Qt
#include <QDateTime>
#include <QFileDialog>
#include <qdatetime.h>
#include <qpushbutton.h>
// utility
#include "fcintl.h"
Expand Down Expand Up @@ -110,7 +111,8 @@ void page_load::update_load_page()
item->setText(info.fileName());
ui.saves_load->setItem(row, 0, item);
item = new QTableWidgetItem();
item->setText(info.lastModified().toString(QLocale().dateTimeFormat()));
item->setText(info.lastModified().toString(
QLocale().dateTimeFormat(QLocale::ShortFormat)));
ui.saves_load->setItem(row, 1, item);
row++;
}
Expand Down

0 comments on commit ec28f52

Please sign in to comment.