Permalink
Browse files

this moved

  • Loading branch information...
1 parent 07cedca commit f4d204557196126ebb9e6b8183de99358b3e509d @lestrrat lestrrat committed Apr 14, 2009
Showing with 0 additions and 16 deletions.
  1. +0 −16 plugins/Pixis-Plugin-Event/lib/Pixis/Web/Controller/Event/Track.pm
View
16 plugins/Pixis-Plugin-Event/lib/Pixis/Web/Controller/Event/Track.pm
@@ -2,7 +2,6 @@
package Pixis::Web::Controller::Event::Track;
use strict;
use base qw(Catalyst::Controller::HTML::FormFu);
-use DateTime::Format::Strptime;
sub load_track :Chained('/event/load_event')
:PathPart('track')
@@ -50,19 +49,4 @@ sub view_default :Chained('load_track')
$c->res->redirect($c->uri_for('/event', $c->stash->{event}->id, 'track', $c->stash->{track}->id, $dates[0]->date));
}
-my $fmt = DateTime::Format::Strptime->new(pattern => '%Y-%m-%d', time_zone => 'local');
-sub view :Chained('load_track')
- :Args(1)
- :PathPart('')
-{
- my ($self, $c, $date) = @_;
-
- $c->stash->{date} = $fmt->parse_datetime($date);
- my $d = Pixis::Registry->get(api => 'EventDate')->load_from_event_date({ event_id => $c->stash->{event}->id, date => $date });
- $d->start_on =~ /^(\d+)/;
- $c->stash->{start_hour} = int( $1 );
- $d->end_on =~ /^(\d+)/;
- $c->stash->{end_hour} = int( $1 );
-}
-
1;

0 comments on commit f4d2045

Please sign in to comment.