diff --git a/internal/entity/photo_optimize.go b/internal/entity/photo_optimize.go index 605664221..fde16854d 100644 --- a/internal/entity/photo_optimize.go +++ b/internal/entity/photo_optimize.go @@ -73,8 +73,8 @@ func (m *Photo) EstimatePlace() { log.Errorf("photo: %s (estimate place)", err.Error()) m.EstimateCountry() } else { - if days := recentPhoto.TakenAt.Sub(m.TakenAt) / (time.Hour * 24); days < -3 || days > 3 { - log.Debugf("photo: can't estimate position of %s, %d days time difference", m, days) + if hours := recentPhoto.TakenAt.Sub(m.TakenAt) / time.Hour; hours < -36 || hours > 36 { + log.Debugf("photo: can't estimate position of %s, %d hours time difference", m, hours) } else if recentPhoto.HasPlace() { m.Place = recentPhoto.Place m.PlaceID = recentPhoto.PlaceID