Skip to content

Commit fda578e

Browse files
Refactor date formatting in ChartByMonth.php
1 parent b967f90 commit fda578e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Filament/Config/FilamentChart/ChartByMonth.php

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ private function setData(): Collection
144144

145145
$is_sqlite = config('database.default') === 'sqlite';
146146
if ($is_sqlite) {
147+
// date_format('.$this->field.", '%b %Y') as period
148+
// strftime("%b %Y", '.$this->field.') as period
147149
$query = DB::table($this->table)
148150
->selectRaw('
149151
count(id) as total,

0 commit comments

Comments
 (0)