respect users timezone in statistic widgets (#1207)

This commit is contained in:
Kevin Papst
2019-10-31 00:17:31 +01:00
committed by GitHub
parent 4331a7c9f4
commit 8eec97deb5
5 changed files with 16 additions and 23 deletions

View File

@@ -1042,7 +1042,7 @@ class KimaiImporterCommand extends Command
}
$user = $this->users[$oldRecord['userID']];
$timezone = $user->getPreferenceValue('timezone', date_default_timezone_get());
$timezone = $user->getTimezone();
$dateTimezone = new \DateTimeZone('UTC');
$begin = new \DateTime('@' . $oldRecord['start']);