Hello all,
problem with datetime datetime_picker
I've setup as described in timepicker.php but it does not work!
I have the "calendar" icon against by the calendar does not appear.
if I click on the "save" button that enragistre 1970 /??
Could you please help me
thank you in advance
eric
Hi,
I still have a problem, I do not manage to save the hours
I want to record: 02:59 and every time to "save" it adds my date?
how?
Eric
Try these settings:
$col["formatter"] = "datetime";
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'Y-m-d H:i:s');
$cols[] = $col;
Please post the column definition if not resolved.
I there I have the same problem, on the database and on the grid it displays 1970-01-01 00:00:00
Here's the code:
$col = array();
$col["title"] = "Fecha Audiencia"; // caption of column
$col["name"] = "proximaaudiencia"; // field name, must be exactly same as with SQL prefix or db field
$col["width"] = "100";
$col["formatter"] = "datetime";
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'Y-m-d H:i:s');
//$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'d/m/Y H:i:s');
$col["editable"] = true;
$col["show"] = array("list"=>true,"edit"=>true,"add"=>false,"view"=>false);
$cols[] = $col;
Hello,
This is resolved in latest build.
If you are using free version, We'll be releasing a new build soon.
Follow blog/twitter/g+ for updates.
Hi Abu,
I have the licensed version, however I am not able to see the timepicker even if I set the formatter as datetime.
here is my code http://prnt.sc/bntop4
here is the output – http://prnt.sc/bntoy2
Compare code with demos/integration/datepicker.php and check of that demo is showing datepicker.
If still not resolved, Share complete code for review.
Tried but no luck.
here is the complete snippet.
http://hastebin.com/camekaweva.coffee
Code looks fine
Please try update the "lib" folder of phpgrid from package.
Looks like the timepicker JS is not loaded.
Also check firebug console for JS error and resend.