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 ...@@ -573,11 +573,8 @@ QDateTime ExtractorPostprocessorPrivate::processTimeForLocation(QDateTime dt, co
return dt; return dt;
} }
QTimeZone tz; const auto tz = KnowledgeDb::timezoneForLocation(place.geo().latitude(), place.geo().longitude(),
if (!place.address().addressCountry().isEmpty()) {
tz = KnowledgeDb::timezoneForLocation(place.geo().latitude(), place.geo().longitude(),
KnowledgeDb::CountryId{place.address().addressCountry()}); KnowledgeDb::CountryId{place.address().addressCountry()});
}
if (!tz.isValid()) { if (!tz.isValid()) {
return dt; return dt;
} }
......
Supports Markdown
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