Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed Jun 7, 2020
1 parent 311a548 commit 6e6ab9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/time_zone_database.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e6ab9f

Please sign in to comment.