Skip to content
Permalink
Browse files

Remove debug code from the Event for logging.

  • Loading branch information...
perlDreamer committed Nov 28, 2011
1 parent 626011a commit b619392d2e8972dfd653190ec519c09b6d00ded9
Showing with 0 additions and 4 deletions.
  1. +0 −4 lib/WebGUI/Asset/Event.pm
@@ -1805,11 +1805,9 @@ sub update {
if ($startHour > 23) {
$startHour = 0;
my $startDate = exists $properties->{startDate} ? $properties->{startDate} : $self->get('startDate');
$session->log->warn('startDate: '. $startDate);
my $startDt = WebGUI::DateTime->new($session, $startDate);
$startDt->add(days => 1);
$properties->{startDate} = $startDt->toMysqlDate;
$session->log->warn('startDate: '. $properties->{startDate});
$startSecond = '00' if ! $startSecond;
$properties->{startTime} = sprintf '%02d:%02d:%02d', $startHour, $startMinute, $startSecond;
}
@@ -1819,11 +1817,9 @@ sub update {
if ($endHour > 23) {
$endHour = 0;
my $endDate = exists $properties->{endDate} ? $properties->{endDate} : $self->get('endDate');
$session->log->warn('endDate: '. $endDate);
my $endDt = WebGUI::DateTime->new($session, $endDate);
$endDt->add(days => 1);
$properties->{endDate} = $endDt->toMysqlDate;
$session->log->warn('endDate: '. $properties->{endDate});
$endSecond = '00' if ! $endSecond;
$properties->{endTime} = sprintf '%02d:%02d:%02d', $endHour, $endMinute, $endSecond;
}

0 comments on commit b619392

Please sign in to comment.
You can’t perform that action at this time.