mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Fix iBreeze Loader. Does not read months > 9. (Oct,nov,Dec)
This commit is contained in:
parent
8fe71d82d3
commit
2fc3d08366
@ -249,8 +249,8 @@ void UpdateEvents(EventType event_type, const QMap<EventType, QVector<EventData>
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString GetSessionFolder(const QString& dirpath, const QDate& session_date) {
|
QString GetSessionFolder(const QString& dirpath, const QDate& session_date) {
|
||||||
const auto year_month_folder = QString::number(session_date.year()) + (session_date.month() > 10 ? "" : "0") + QString::number(session_date.month());
|
const auto year_month_folder = QString("%1%2").arg(session_date.year()).arg(session_date.month(),2,10,QLatin1Char('0'));
|
||||||
const auto day_folder = (session_date.day() > 10 ? "" : "0") + QString::number(session_date.day());
|
const auto day_folder = QString("%1").arg(session_date.day(),2,10,QLatin1Char('0')) ;
|
||||||
const auto session_folder_path = dirpath + QDir::separator() + kResventTherapyFolder + QDir::separator() + kResventRecordFolder + QDir::separator() + year_month_folder + QDir::separator() + day_folder;
|
const auto session_folder_path = dirpath + QDir::separator() + kResventTherapyFolder + QDir::separator() + kResventRecordFolder + QDir::separator() + year_month_folder + QDir::separator() + day_folder;
|
||||||
return session_folder_path;
|
return session_folder_path;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user