added support for Ante meridiem and Post meridiem format (#615)

This commit is contained in:
Kevin Papst
2019-03-06 10:59:31 +01:00
committed by GitHub
parent e260dd84ad
commit 54cd30c564
14 changed files with 114 additions and 24 deletions

View File

@@ -960,6 +960,11 @@ class KimaiImporterCommand extends Command
continue;
}
if (empty($oldRecord['end']) || $oldRecord['end'] === 0) {
$io->error('Cannot import running timesheet record, skipping: ' . $oldRecord['timeEntryID']);
continue;
}
$duration = $oldRecord['end'] - $oldRecord['start'];
// ----------------------- unknown user, damned missing data integrity in Kimai v1 -----------------------