fix: List View now begins at the beginning of the day of the date/time passed in

removed a spurious warning
This commit is contained in:
Doug Bell 2008-02-29 17:20:50 +00:00
parent 49d5f4c678
commit 78776f2f33
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
7.5.5 7.5.5
- fixed: Several typos in the new Calendar help documentation. - fixed: Several typos in the new Calendar help documentation.
- fix: List View now starts at the beginning of the day passed in.
- Removed some spurious warnings from the calendar.
7.5.4 7.5.4
- fixed: unable to remove calendar feeds in IE6 - fixed: unable to remove calendar feeds in IE6

View file

@ -913,7 +913,7 @@ sub prepareView {
$self->session->style->makePrintable(1); $self->session->style->makePrintable(1);
} }
$self->session->errorHandler->warn("Prepare view ".$view." with template ".$self->get("templateId".$view)); #$self->session->errorHandler->warn("Prepare view ".$view." with template ".$self->get("templateId".$view));
my $template = WebGUI::Asset::Template->new($self->session, $self->get("templateId".$view)); my $template = WebGUI::Asset::Template->new($self->session, $self->get("templateId".$view));
$template->prepare; $template->prepare;
@ -1217,7 +1217,7 @@ sub viewList {
my $var = $self->getTemplateVars; my $var = $self->getTemplateVars;
### Get the events ### Get the events
my $dtStart = WebGUI::DateTime->new( $session, $params->{start} ); my $dtStart = WebGUI::DateTime->new( $session, $params->{start} )->truncate( to => "day" );
my $dtEnd = $dtStart->clone->add( seconds => $self->get('listViewPageInterval') ); my $dtEnd = $dtStart->clone->add( seconds => $self->get('listViewPageInterval') );
my @events my @events