datepicker 가 내장된 브라우저에서는 내장 기능 사용

This commit is contained in:
MinSoo Kim 2016-02-23 04:13:14 +09:00
parent 81b1fd5752
commit c9ed1f08e9
7 changed files with 213 additions and 35 deletions

View file

@ -23,7 +23,7 @@ class pollController extends poll
// mobile input date format can be different
if($stop_date != Context::get('stop_date'))
{
$stop_date = date('Ymd', strtodate(Context::get('stop_date')));
$stop_date = date('Ymd', strtotime(Context::get('stop_date')));
}
if($stop_date < date('Ymd'))
{