From 43ac47d8d87f40fd6f24010cf367438a1f5061b4 Mon Sep 17 00:00:00 2001 From: Paul Schoenfelder Date: Sun, 27 Jul 2014 15:54:12 -0500 Subject: [PATCH] Fix bug when reading tzdata from /etc/timezone --- lib/timezone/timezone_local.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timezone/timezone_local.ex b/lib/timezone/timezone_local.ex index 1afc4522..bc38c41b 100644 --- a/lib/timezone/timezone_local.ex +++ b/lib/timezone/timezone_local.ex @@ -675,7 +675,7 @@ defmodule Timex.Timezone.Local do etctz = File.read!(@_ETC_TIMEZONE) case etctz |> String.starts_with?("TZif2") do true -> - case etctz |> File.read! |> parse_tzfile(date) do + case etctz |> parse_tzfile(date) do {:ok, tz} -> {:ok, tz} {:error, m} -> raise m end