computeSunriseSunset(locationResource, city, visitedCity);
em.persist(visitedCity);
}
private void computeSunriseSunset(final LocationFacet locationFacet, final City city, final VisitedCity mdFacet) {
Location location = new Location(String.valueOf(locationFacet.latitude), String.valueOf(locationFacet.longitude));
final TimeZone timeZone = TimeZone.getTimeZone(city.geo_timezone);
SunriseSunsetCalculator calc = new SunriseSunsetCalculator(location, timeZone);
Calendar c = Calendar.getInstance(timeZone);
c.setTimeInMillis(locationFacet.start);
Calendar sunrise = calc.getOfficialSunriseCalendarForDate(c);