remove all setTimestamp(time()) in php files after new DateTime
This commit is contained in:
parent
a6916e7e4b
commit
0d870e8ed7
@ -64,9 +64,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
|
||||
}
|
||||
|
||||
// make default date (now)
|
||||
$date = new \DateTime;
|
||||
$date->setTimestamp(time());
|
||||
$default_date = $date;
|
||||
$default_date = new \DateTime;
|
||||
|
||||
// make comment placeholder
|
||||
$comment_placeholder = "ex: don reçu de la part de...";
|
||||
|
@ -38,9 +38,7 @@ $kinds = $mvt->listEntryKinds();
|
||||
$selected_kind = $kinds[0];
|
||||
|
||||
// make default date (now)
|
||||
$date = new \DateTime;
|
||||
$date->setTimestamp(time());
|
||||
$default_date = $date;
|
||||
$default_date = new \DateTime;
|
||||
|
||||
// make comment placeholder
|
||||
$comment_placeholder = "ex: don reçu de la part de...";
|
||||
|
@ -48,9 +48,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
|
||||
}
|
||||
|
||||
// make default date (now)
|
||||
$date = new \DateTime;
|
||||
$date->setTimestamp(time());
|
||||
$default_date = $date;
|
||||
$default_date = new \DateTime;
|
||||
|
||||
// make comment placeholder
|
||||
$comment_placeholder = "ex: retour de prêt...";
|
||||
|
@ -49,9 +49,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
|
||||
$eqmts_by_cat = $eqmt->ListAllBorrowedByCategory();
|
||||
|
||||
// make default date (now)
|
||||
$date = new \DateTime;
|
||||
$date->setTimestamp(time());
|
||||
$default_date = $date;
|
||||
$default_date = new \DateTime;
|
||||
|
||||
// make comment placeholder
|
||||
$comment_placeholder = "ex: matériel rendu...";
|
||||
|
@ -54,9 +54,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
|
||||
}
|
||||
|
||||
// make default date (now)
|
||||
$date = new \DateTime;
|
||||
$date->setTimestamp(time());
|
||||
$default_date = $date;
|
||||
$default_date = new \DateTime;
|
||||
|
||||
// make comment placeholder
|
||||
$comment_placeholder = "ex: don fait à...";
|
||||
|
Loading…
Reference in New Issue
Block a user