mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
fix am/pm time for HRV
This commit is contained in:
committed by
Ale Martinez
parent
03e8da2c92
commit
96b36aef0d
@@ -117,7 +117,8 @@ HrvMeasuresCsvImport::getHrvMeasures(QString &error, QDateTime from, QDateTime t
|
||||
if (!m.when.isValid()) {
|
||||
// try 12hr format (HRV4Training for iPhone variant...)
|
||||
m.when = QDateTime::fromString(i.left(19).trimmed(), "yyyy-MM-dd h:mm:ss");
|
||||
if (i.contains("p", Qt::CaseInsensitive)) m.when.addSecs(12*3600);
|
||||
if (i.contains("p", Qt::CaseInsensitive))
|
||||
m.when = m.when.addSecs(12*3600);
|
||||
}
|
||||
if (m.when.isValid()) {
|
||||
// skip line if not in date range
|
||||
|
||||
Reference in New Issue
Block a user