From 76edfcec5dac7ce6025e399f3750afca6e379ba3 Mon Sep 17 00:00:00 2001 From: Ricky Chilcott Date: Fri, 21 Sep 2018 08:31:25 -0400 Subject: [PATCH] Use parse_local because parse requires location to be provided --- src/faker/business.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/faker/business.cr b/src/faker/business.cr index a0def9b..01179aa 100644 --- a/src/faker/business.cr +++ b/src/faker/business.cr @@ -6,7 +6,7 @@ module Faker def self.credit_card_expiry_date credit_card_expiry_date = Faker.fetch(Data["business"]["credit_card_expiry_dates"]).as String - Time.parse(credit_card_expiry_date, "%Y-%m-%d") + Time.parse_local(credit_card_expiry_date, "%Y-%m-%d") end def self.credit_card_type