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)
|
// 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...";
|
||||||
|
|
|
@ -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...";
|
||||||
|
|
|
@ -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...";
|
||||||
|
|
|
@ -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...";
|
||||||
|
|
|
@ -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 à...";
|
||||||
|
|
Loading…
Reference in New Issue