From 6e6ab9f0e5b7c23e9d6e9f7a3af80390910d4464 Mon Sep 17 00:00:00 2001 From: mathieuprog <5883963+mathieuprog@users.noreply.github.com> Date: Sun, 7 Jun 2020 08:49:03 +0200 Subject: [PATCH] Clean --- lib/time_zone_database.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/time_zone_database.ex b/lib/time_zone_database.ex index 5552908..708b747 100644 --- a/lib/time_zone_database.ex +++ b/lib/time_zone_database.ex @@ -63,8 +63,8 @@ defmodule Tz.TimeZoneDatabase do # the utc timestamp + the offset (= this transition's wall time) if secs >= utc_secs + prev_utc_off + prev_std_off do {:gap, - {period_to_map(prev_period), utc_secs + prev_utc_off + prev_std_off |> gregorian_seconds_to_naive_datetime}, - {period_to_map(period), utc_secs + utc_off + std_off |> gregorian_seconds_to_naive_datetime}} + {period_to_map(prev_period), gregorian_seconds_to_naive_datetime(utc_secs + prev_utc_off + prev_std_off)}, + {period_to_map(period), gregorian_seconds_to_naive_datetime(utc_secs + utc_off + std_off)}} else # the given timestamp occurs before this transition and there is no gap with the previous period, # so continue iterating