Scheduler New Event Start & End dates are wrong! [FIXED]

Any critical bugs will be fixed within 24-48 hours.
Also qdPM is in active development so any other issues will be fixed in next versions

Scheduler New Event Start & End dates are wrong! [FIXED]

Postby erokoltd » Thu Jun 08, 2017 7:08 pm

The start & end dates of 'Personal Scheduler' mark previous days for month period Nov-05-2017 to Mar-11-2018.
Here are the modified code of _form.php file:

if($form->getObject()->isNew())
{
$start_date_timestamp = $sf_request->getParameter('start')/1000;
$end_date_timestamp = $sf_request->getParameter('end')/1000;

if($sf_request->getParameter('view_name')=='month')
{
$start_date = date('Y-m-d',strtotime('+1 day',$start_date_timestamp));
$end_date = date('Y-m-d',strtotime('0 day',$end_date_timestamp));
}
else
{

$offset=date('Z');

if($offset<0)
{
$start_date_timestamp+=abs($offset);
$end_date_timestamp+=abs($offset);
}
else
{
$start_date_timestamp-=abs($offset);
$end_date_timestamp-=abs($offset);
}
$start_date = date('Y-m-d H:i',$start_date_timestamp);
$end_date = date('Y-m-d H:i',$end_date_timestamp);
}
}
erokoltd
 
Posts: 1
Joined: Thu Jun 08, 2017 6:51 pm

Return to Bug Report

Who is online

Users browsing this forum: No registered users and 2 guests

cron