Skip to content

Commit

Permalink
Set the default format to ISO8601
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Apr 13, 2020
1 parent e666325 commit 6e5f53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Concerns/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function getDates()
*/
public function getDateFormat()
{
return $this->dateFormat ?: 'Y-m-d H:i:s.u';
return $this->dateFormat ?: DateTimeInterface::ISO8601;
}

/**
Expand Down

0 comments on commit 6e5f53c

Please sign in to comment.