Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Datetime field shows in forms only as date field #90

Closed
DarkSide666 opened this Issue · 4 comments

2 participants

@DarkSide666

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.

@romaninsh
Owner

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'));

@romaninsh
Owner

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

@DarkSide666

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/

@romaninsh
Owner

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
Something went wrong with that request. Please try again.