[TYPO3-calendar] List View: Today - Tomorrow

Stephan Helten stephan.helten at engage.de
Tue Aug 2 14:41:02 CEST 2011


Hi,

there is no option "+2 days"(, yet?!).

regards

Stephan

-----Ursprüngliche Nachricht-----
Von: typo3-project-calendar-bounces at lists.typo3.org
[mailto:typo3-project-calendar-bounces at lists.typo3.org] Im Auftrag von Mario
Matzulla
Gesendet: Dienstag, 2. August 2011 14:30
An: typo3-project-calendar at lists.typo3.org
Betreff: Re: [TYPO3-calendar] List View: Today - Tomorrow

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
>

_______________________________________________
TYPO3-project-calendar mailing list
TYPO3-project-calendar at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-calendar



More information about the TYPO3-project-calendar mailing list