i made script put date informations: day, month, year , hour , minutes , format or pm. take informations with:
$day = $_post['day']
..........
that's how take informations , works well, when wanna do:
$time = strtotime($hour.':'.$minute.' '.$format.' '.$year.'-'.$month.'-'.$day);
it updates database utc 1970, actualy first second ever count.
what wrong?
the h:i y-m-d is not acceptable format strtotime(). need use y-m-d h:i a.
$time = strtotime($year.'-'.$month.'-'.$day.' '.$hour.':'.$minute.' '.$format);
Comments
Post a Comment