신원형

removed utc time offset

......@@ -63,8 +63,7 @@ export async function get_weather_forecast(date) {
}
function extract_from(date, json_response) {
const time_zone = date.getTimezonOffset() * 60 * 1000
const target_timestamp = Math.floor(date.getTime() / 1000) + time_zone
const target_timestamp = Math.floor(date.getTime() / 1000)
const target_index = find_min_index(json_response.daily.map(it => Math.abs(it.dt - target_timestamp)))
......