Commit ce0c9c2c authored by networkException's avatar networkException Committed by derf
Browse files

MOTIS: Normalize timestamps to Europe/Berlin

parent da7ed542
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -287,6 +287,7 @@ sub startup {
				user_agent => $self->ua,
				root_url   => $self->base_url_for('/')->to_abs,
				version    => $self->app->config->{version},
				time_zone  => 'Europe/Berlin',
			);
		}
	);
+1 −0
Original line number Diff line number Diff line
@@ -730,6 +730,7 @@ sub geolocation {
		Travel::Status::MOTIS->new_p(
			promise    => 'Mojo::Promise',
			user_agent => $self->ua,
			time_zone  => 'Europe/Berlin',

			service             => $motis_service,
			stops_by_coordinate => {
+3 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ sub get_station_by_query_p {
		cache       => $self->{cache},
		promise     => 'Mojo::Promise',
		user_agent  => Mojo::UserAgent->new,
		time_zone   => 'Europe/Berlin',
		lwp_options => {
			timeout => 10,
			agent   => $self->{header}{'User-Agent'},
@@ -101,6 +102,7 @@ sub get_departures_p {
		cache       => $self->{cache},
		promise     => 'Mojo::Promise',
		user_agent  => Mojo::UserAgent->new,
		time_zone   => 'Europe/Berlin',
		lwp_options => {
			timeout => 10,
			agent   => $self->{header}{'User-Agent'},
@@ -125,6 +127,7 @@ sub get_trip_p {
		cache         => $self->{realtime_cache},
		promise       => 'Mojo::Promise',
		user_agent    => Mojo::UserAgent->new,
		time_zone     => 'Europe/Berlin',

		service => $opt{service},
		trip_id => $opt{trip_id},