Skip to content

Commit

Permalink
bump elixir versions (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kapkov authored Sep 7, 2017
1 parent 2d351d3 commit 42c1e36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
language: elixir
sudo: false
elixir:
- 1.3.4
- 1.4.5
- 1.5.1
otp_release:
- 19.3
- 20.0
before_script:
- kerl list installations
script:
- mix test && mix credo --strict && mix dialyzer --halt-exit-status
notifications:
recipients:
- [email protected]
matrix:
exclude:
- otp_release: 20.0
elixir: 1.3.4
2 changes: 2 additions & 0 deletions lib/faker/datetime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ defmodule Faker.DateTime do

# private

@spec date_to_datetime(Date.t) :: DateTime.t
defp date_to_datetime(date) do
%DateTime{calendar: Calendar.ISO, day: date.day, hour: 0, minute: 0,
month: date.month, second: 0, time_zone: "Etc/UTC",
utc_offset: 0, std_offset: 0, year: date.year, zone_abbr: "UTC"}
end

@spec naivedatetime_to_datetime(NaiveDateTime.t) :: DateTime.t
defp naivedatetime_to_datetime(naivedatetime) do
%DateTime{calendar: naivedatetime.calendar, day: naivedatetime.day,
hour: naivedatetime.hour, minute: naivedatetime.minute,
Expand Down

0 comments on commit 42c1e36

Please sign in to comment.