in symfony2 form type, have datetime choice fields years choice, months choice, days choice, hours choice , minute choice.
when save new record keep hours choice 00 [2015/07/16 00:00]. after success saving, go list , saw hours of new record 12 [2015/07/16 12:00].
- when select database, got date [2015/07/16 00:00]
in twig, did
{{ entity.replydatetime|date("y-m-d h:i") }}
anyone know, how stop auto converting , keep 00 [2015/07/16 00:00]?
Comments
Post a Comment