Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion panels/notification/center/notifyitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

#include "notifyitem.h"

#include <QDateTime>

Check warning on line 7 in panels/notification/center/notifyitem.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QDateTime> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QLocale>

Check warning on line 8 in panels/notification/center/notifyitem.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QLocale> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QLoggingCategory>

Check warning on line 9 in panels/notification/center/notifyitem.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QLoggingCategory> not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include <unicode/reldatefmt.h> // For RelativeDateTimeFormatter

Check warning on line 11 in panels/notification/center/notifyitem.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <unicode/reldatefmt.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <unicode/smpdtfmt.h> // For SimpleDateFormat

#include "notifyaccessor.h"
Expand Down Expand Up @@ -135,7 +136,7 @@
formatter->combineDateAndTime(result, timeString, combinedString, status);
ret = toQString(combinedString);
} else if (elapsedDay >= 2 && elapsedDay < 7) {
ret = time.toString("ddd hh:mm");
ret = QLocale::system().toString(time, "ddd hh:mm");
} else {
ret = time.toString(QLocale::system().dateFormat(QLocale::ShortFormat));
}
Expand Down
Loading