1
0
Fork 0

timestamp null

develop
panliang 2023-05-09 20:24:22 +08:00
parent 4745c1dff4
commit 7281a51b22
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class PlantHarvestResource extends JsonResource
'director' => $this->director,
'area' => $this->area,
'output' => $this->output,
'harvest_at' => $this->harvest_at ? $this->harvest_at->timestamp : '',
'harvest_at' => $this->harvest_at ? $this->harvest_at->timestamp : null,
];
}
}

View File

@ -19,8 +19,8 @@ class RegionPlantResource extends JsonResource
'plant_name' => $this->plant_name,
'director' => $this->director,
'area' => $this->area,
'start_at' => $this->start_at ? $this->start_at->timestamp : '',
'end_at' => $this->end_at ? $this->end_at->timestamp : '',
'start_at' => $this->start_at ? $this->start_at->timestamp : null,
'end_at' => $this->end_at ? $this->end_at->timestamp : null,
'plant_state' => $this->plant_state,
];
}