Skip to content

Commit

Permalink
Fix date fieldtype format handling in listings (#6845)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Varga <jason@pixelfear.com>
  • Loading branch information
granitibrahimi and jasonvarga authored Oct 10, 2022
1 parent 6aa77ee commit bb2831a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fieldtypes/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function preProcessIndex($data)
return $start.' - '.$end;
}

return Carbon::parse($data)->format($this->indexDisplayFormat());
return $this->parseSaved($data)->format($this->indexDisplayFormat());
}

private function saveFormat()
Expand Down

0 comments on commit bb2831a

Please sign in to comment.