Skip to content

Commit

Permalink
fix formato da data e hora do aniversario do cliente, no ambiente de …
Browse files Browse the repository at this point in the history
…sandbox eles trabalha com d/m/Y e no de producao ta Y-m-d, vai entender
  • Loading branch information
Kallef Alexandre committed Feb 8, 2019
1 parent 63dc788 commit 1b3110a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ public function setCustomerMail(string $customerMail): void
*/
public function getCustomerBirthDate(): ?Carbon
{
return $this->customerBirthDate ? Carbon::createFromFormat('d/m/Y', $this->customerBirthDate) : null;
return $this->customerBirthDate ? Carbon::createFromFormat('Y-m-d', $this->customerBirthDate) : null;
}

/**
Expand Down

0 comments on commit 1b3110a

Please sign in to comment.