i have a strange issue with a field "date". First i save it programatically this way :
$now = new \DateTime(); $node->set('field_paiement_date' => DrupalDateTime::createFromTimestamp($now->getTimestamp()); $node->save();
My current timezone is 'Pacific/Noumea', so the correct value i want to show to the users is the one when i dump the field. What is the best way to do that ?