remove all setTimestamp(time()) in php files after new DateTime

This commit is contained in:
JBthePenguin 2021-10-03 17:24:11 +02:00
parent a6916e7e4b
commit 0d870e8ed7
5 changed files with 5 additions and 15 deletions

View File

@ -64,9 +64,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
} }
// make default date (now) // make default date (now)
$date = new \DateTime; $default_date = new \DateTime;
$date->setTimestamp(time());
$default_date = $date;
// make comment placeholder // make comment placeholder
$comment_placeholder = "ex: don reçu de la part de..."; $comment_placeholder = "ex: don reçu de la part de...";

View File

@ -38,9 +38,7 @@ $kinds = $mvt->listEntryKinds();
$selected_kind = $kinds[0]; $selected_kind = $kinds[0];
// make default date (now) // make default date (now)
$date = new \DateTime; $default_date = new \DateTime;
$date->setTimestamp(time());
$default_date = $date;
// make comment placeholder // make comment placeholder
$comment_placeholder = "ex: don reçu de la part de..."; $comment_placeholder = "ex: don reçu de la part de...";

View File

@ -48,9 +48,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
} }
// make default date (now) // make default date (now)
$date = new \DateTime; $default_date = new \DateTime;
$date->setTimestamp(time());
$default_date = $date;
// make comment placeholder // make comment placeholder
$comment_placeholder = "ex: retour de prêt..."; $comment_placeholder = "ex: retour de prêt...";

View File

@ -49,9 +49,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
$eqmts_by_cat = $eqmt->ListAllBorrowedByCategory(); $eqmts_by_cat = $eqmt->ListAllBorrowedByCategory();
// make default date (now) // make default date (now)
$date = new \DateTime; $default_date = new \DateTime;
$date->setTimestamp(time());
$default_date = $date;
// make comment placeholder // make comment placeholder
$comment_placeholder = "ex: matériel rendu..."; $comment_placeholder = "ex: matériel rendu...";

View File

@ -54,9 +54,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
} }
// make default date (now) // make default date (now)
$date = new \DateTime; $default_date = new \DateTime;
$date->setTimestamp(time());
$default_date = $date;
// make comment placeholder // make comment placeholder
$comment_placeholder = "ex: don fait à..."; $comment_placeholder = "ex: don fait à...";