[TYPO3-calendar] List View: Today - Tomorrow

Mario Matzulla mario at matzullas.de
Tue Aug 2 14:30:02 CEST 2011


Hi Stephan,

Am 01.08.11 17:54, schrieb Stephan Helten:
> Hi,
>
>
>
> when setting in the list view tab:
>
>
>
> Start time: Today
>
> End time: Tomorrow
>
>
>
> Only events of today are listed.
>
>
>
> This is because the implementation of tomorrow is
> (cal/controller/class.tx_cal_dateParser.php):
>
>
>
> case 'tomorrow':
>
>      $date->setMinute(0);
>
>      $date->setSecond(0);
>
>      $date->setHour(0);
>
>      $date->addSeconds(86400);
>
>      break;
>
>
>
> I think this is slightly misleading.
>
>
>
> Shouldn't it be?:
>
>
>
> case 'tomorrow':
>
>      $date->setMinute(0);
>
>      $date->setSecond(0);
>
>      $date->setHour(0);
>
>      $date->addSeconds(172800);
>
>      break;
>
>
>
> When speaking about tomorrow, the user associates the whole day.
>
>
>
> If I'm wrong, how can I configure a list containing events of today and
> tomorrow (till the end of the day)?

start time: today
end time: +2 days
:)

Regards,
Mario

>
>
>
> regards
>
>
>
> Stephan Helten
>



More information about the TYPO3-project-calendar mailing list