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:
parent
c25ae912bf
commit
76edfcec5d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user