php - ERROR Warning: date() expects parameter 2 to be long, string given in -


i error on nextgen-gallery/lib/meta.php on line 522

error warning: date() expects parameter 2 long, string given in

this line includes:

$date_time = date( 'y-m-d h:i:s', $date_time ); 

how can resolve this?

try this:

$date_time = date( 'y-m-d h:i:s', strtotime($date_time) );

read http://php.net/manual/en/function.strtotime.php , http://php.net/manual/en/function.date.php


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -