Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
Fix issue: Carbon casting from timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfredric committed Jun 22, 2017
1 parent 3adcb0c commit 36cc048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modest.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected function castToDates($key, $value)
return $value;
}

return \Carbon\Carbon::create(strtotime($value));
return \Carbon\Carbon::createFromTimestamp(strtotime($value));
}

/**
Expand Down

0 comments on commit 36cc048

Please sign in to comment.