mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Format datetimes in parts tables using a IntlDatetimeFormatter.
This commit is contained in:
parent
a48b8290b3
commit
41a0317736
2 changed files with 96 additions and 2 deletions
|
@ -29,6 +29,7 @@
|
|||
|
||||
namespace App\DataTables;
|
||||
|
||||
use App\DataTables\Column\LocaleDateTimeColumn;
|
||||
use App\Entity\Parts\Category;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Services\EntityURLGenerator;
|
||||
|
@ -115,11 +116,11 @@ class PartsDataTable implements DataTableTypeInterface
|
|||
])
|
||||
//->add('storelocation', TextColumn::class, ['field' => 'storelocation.name', 'label' => 'storelocation.label'])
|
||||
|
||||
->add('addedDate', DateTimeColumn::class, [
|
||||
->add('addedDate', LocaleDateTimeColumn::class, [
|
||||
'label' => $this->translator->trans('part.table.addedDate'),
|
||||
'visible' => false
|
||||
])
|
||||
->add('lastModified', DateTimeColumn::class, [
|
||||
->add('lastModified', LocaleDateTimeColumn::class, [
|
||||
'label' => $this->translator->trans('part.table.lastModified'),
|
||||
'visible' => false
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue