Commit 077ff8f5 authored by Volker Krause's avatar Volker Krause
Browse files

Determine event time zones from coordinates even without the country

This is unnecessarily restrictive.
parent eab52713
......@@ -573,11 +573,8 @@ QDateTime ExtractorPostprocessorPrivate::processTimeForLocation(QDateTime dt, co
return dt;
}
QTimeZone tz;
if (!place.address().addressCountry().isEmpty()) {
tz = KnowledgeDb::timezoneForLocation(place.geo().latitude(), place.geo().longitude(),
const auto tz = KnowledgeDb::timezoneForLocation(place.geo().latitude(), place.geo().longitude(),
KnowledgeDb::CountryId{place.address().addressCountry()});
}
if (!tz.isValid()) {
return dt;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment