date_timepicker don't work !

Questionsdate_timepicker don't work !
eric carichon asked 11 years ago

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

11 Answers
eric carichon answered 11 years ago

Hello all,

calendar now appears, error in my code?

by

Eric

eric carichon answered 11 years ago

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

Abu Ghufran answered 11 years ago

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.

Christian Ramirez answered 9 years ago

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;

Abu Ghufran answered 9 years ago

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.

Ananda Theerthan answered 8 years ago

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

Abu Ghufran answered 8 years ago

Compare code with demos/integration/datepicker.php and check of that demo is showing datepicker.
If still not resolved, Share complete code for review.

Ananda Theerthan answered 8 years ago

Tried but no luck.
here is the complete snippet.
http://hastebin.com/camekaweva.coffee

Abu Ghufran answered 8 years ago

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.

Ananda Theerthan answered 8 years ago

Hi Abu,
Here is the warning in firebug.
http://prntscr.com/bom0j3

Ananda Theerthan answered 8 years ago

Abu,
My bad, I had included jquery-ui.custom.min.js twice in my page which was causing the issue.

Your Answer

17 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?