Datetime field shows in forms only as date field #90

Closed
DarkSide666 opened this Issue Aug 22, 2012 · 4 comments

Comments

Projects
None yet
2 participants
Member

DarkSide666 commented Aug 22, 2012

I have datetime field in my Model like this:
$this->addField('created')->type('datetime');

But in form generated with setModel this field shows up as only date field without time information.
Also in calendar widget there are no time fields to fill out.

In grid it shows correctly as datetime not only date.

Owner

romaninsh commented Aug 23, 2012

The problem here is that there are no control for both date and time.The best bet would be to use ->display(array('form'=>'line'));

Owner

romaninsh commented Aug 23, 2012

for this one we might need a better widget, with time support or separate it into two fields.

Member

DarkSide666 commented Aug 23, 2012

Ok I see. jQuery datepicker don't support time. I didn't know that.

I found this jQuery add-on called "Timepicker". Maybe it could be useful to include in ATK4 at some point.
http://trentrichardson.com/examples/timepicker/

Owner

romaninsh commented Aug 28, 2012

If there will be necessity in any of our projects, I'll add it into atk4-addons under permissive license with no warranty (MIT)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment