1
0
mirror of https://github.com/askn/faker.git synced 2023-08-10 21:13:01 +03:00

Use parse_local because parse requires location to be provided

This commit is contained in:
Ricky Chilcott 2018-09-21 08:31:25 -04:00
parent c25ae912bf
commit 76edfcec5d

View File

@ -6,7 +6,7 @@ module Faker
def self.credit_card_expiry_date def self.credit_card_expiry_date
credit_card_expiry_date = Faker.fetch(Data["business"]["credit_card_expiry_dates"]).as String 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 end
def self.credit_card_type def self.credit_card_type