summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-12-17 21:48:37 +0100
committerDaniel Friesel <derf@finalrewind.org>2010-12-17 21:48:37 +0100
commit2adc759bfe8879a569c89b045b6396cb46a01d77 (patch)
tree7fc0c83b4dc44efc3a64523c480738b970d5ef3b /lib
parent5f4f2a4d54e4f0e2aabedd9ab1b5483c503204e6 (diff)
WWW::Efa: create_post: Fix indentation, use correct date/time
Diffstat (limited to 'lib')
-rw-r--r--lib/WWW/Efa.pm174
1 files changed, 87 insertions, 87 deletions
diff --git a/lib/WWW/Efa.pm b/lib/WWW/Efa.pm
index b0fd7ca..b52121a 100644
--- a/lib/WWW/Efa.pm
+++ b/lib/WWW/Efa.pm
@@ -171,97 +171,97 @@ sub post_place {
sub create_post {
my ($conf) = @_;
+ my @now = localtime(time());
my $post = {
- changeSpeed => "normal",
- command => "",
- execInst => "",
- imparedOptionsActive => 1,
- inclMOT_0 => "on",
- inclMOT_1 => "on",
- inclMOT_10 => "on",
- inclMOT_11 => "on",
- inclMOT_2 => "on",
- inclMOT_3 => "on",
- inclMOT_4 => "on",
- inclMOT_5 => "on",
- inclMOT_6 => "on",
- inclMOT_7 => "on",
- inclMOT_8 => "on",
- inclMOT_9 => "on",
- includedMeans => "checkbox",
- itOptionsActive => 1,
- itdDateDay => "03",
- itdDateMonth => 12,
- itdDateYear => 10,
- itdLPxx_ShowFare => " ",
- itdLPxx_command => "",
- itdLPxx_enableMobilityRestrictionOptionsWithButton => "",
- itdLPxx_id_destination => ":destination",
- itdLPxx_id_origin => ":origin",
- itdLPxx_id_via => ":via",
- itdLPxx_mapState_destination => "",
- itdLPxx_mapState_origin => "",
- itdLPxx_mapState_via => "",
- itdLPxx_mdvMap2_destination => "",
- itdLPxx_mdvMap2_origin => "",
- itdLPxx_mdvMap2_via => "",
- itdLPxx_mdvMap_destination => "::",
- itdLPxx_mdvMap_origin => "::",
- itdLPxx_mdvMap_via => "::",
- itdLPxx_priceCalculator => "",
- itdLPxx_transpCompany => "vrr",
- itdLPxx_view => "",
- itdTimeHour => 23,
- itdTimeMinute => 38,
- itdTripDateTimeDepArr => "dep",
- language => "de",
- lineRestriction => 403,
- maxChanges => 9,
- nameInfo_destination => "invalid",
- nameInfo_origin => "invalid",
- nameInfo_via => "invalid",
- nameState_destination => "empty",
- nameState_origin => "empty",
- nameState_via => "empty",
- name_destination => "",
- name_origin => "",
- name_via => "",
- placeInfo_destination => "invalid",
- placeInfo_origin => "invalid",
- placeInfo_via => "invalid",
- placeState_destination => "empty",
- placeState_origin => "empty",
- placeState_via => "empty",
- place_destination => "",
- place_origin => "",
- place_via => "",
- ptOptionsActive => 1,
- requestID => 0,
- routeType => "LEASTTIME",
- sessionID => 0,
- text => 1993,
- trITArrMOT => 100,
- trITArrMOTvalue100 => 8,
- trITArrMOTvalue101 => 10,
- trITArrMOTvalue104 => 10,
- trITArrMOTvalue105 => 10,
- trITDepMOT => 100,
- trITDepMOTvalue100 => 8,
- trITDepMOTvalue101 => 10,
- trITDepMOTvalue104 => 10,
- trITDepMOTvalue105 => 10,
- typeInfo_destination => "invalid",
- typeInfo_origin => "invalid",
- typeInfo_via => "invalid",
- type_destination => "stop",
- type_origin => "stop",
- type_via => "stop",
- useRealtime => 1
- };
+ changeSpeed => "normal",
+ command => "",
+ execInst => "",
+ imparedOptionsActive => 1,
+ inclMOT_0 => "on",
+ inclMOT_1 => "on",
+ inclMOT_10 => "on",
+ inclMOT_11 => "on",
+ inclMOT_2 => "on",
+ inclMOT_3 => "on",
+ inclMOT_4 => "on",
+ inclMOT_5 => "on",
+ inclMOT_6 => "on",
+ inclMOT_7 => "on",
+ inclMOT_8 => "on",
+ inclMOT_9 => "on",
+ includedMeans => "checkbox",
+ itOptionsActive => 1,
+ itdDateDay => $now[3],
+ itdDateMonth => $now[4] + 1,
+ itdDateYear => $now[5] + 1900,
+ itdLPxx_ShowFare => " ",
+ itdLPxx_command => "",
+ itdLPxx_enableMobilityRestrictionOptionsWithButton => "",
+ itdLPxx_id_destination => ":destination",
+ itdLPxx_id_origin => ":origin",
+ itdLPxx_id_via => ":via",
+ itdLPxx_mapState_destination => "",
+ itdLPxx_mapState_origin => "",
+ itdLPxx_mapState_via => "",
+ itdLPxx_mdvMap2_destination => "",
+ itdLPxx_mdvMap2_origin => "",
+ itdLPxx_mdvMap2_via => "",
+ itdLPxx_mdvMap_destination => "::",
+ itdLPxx_mdvMap_origin => "::",
+ itdLPxx_mdvMap_via => "::",
+ itdLPxx_priceCalculator => "",
+ itdLPxx_transpCompany => "vrr",
+ itdLPxx_view => "",
+ itdTimeHour => $now[2],
+ itdTimeMinute => $now[1],
+ itdTripDateTimeDepArr => "dep",
+ language => "de",
+ lineRestriction => 403,
+ maxChanges => 9,
+ nameInfo_destination => "invalid",
+ nameInfo_origin => "invalid",
+ nameInfo_via => "invalid",
+ nameState_destination => "empty",
+ nameState_origin => "empty",
+ nameState_via => "empty",
+ name_destination => "",
+ name_origin => "",
+ name_via => "",
+ placeInfo_destination => "invalid",
+ placeInfo_origin => "invalid",
+ placeInfo_via => "invalid",
+ placeState_destination => "empty",
+ placeState_origin => "empty",
+ placeState_via => "empty",
+ place_destination => "",
+ place_origin => "",
+ place_via => "",
+ ptOptionsActive => 1,
+ requestID => 0,
+ routeType => "LEASTTIME",
+ sessionID => 0,
+ text => 1993,
+ trITArrMOT => 100,
+ trITArrMOTvalue100 => 8,
+ trITArrMOTvalue101 => 10,
+ trITArrMOTvalue104 => 10,
+ trITArrMOTvalue105 => 10,
+ trITDepMOT => 100,
+ trITDepMOTvalue100 => 8,
+ trITDepMOTvalue101 => 10,
+ trITDepMOTvalue104 => 10,
+ trITDepMOTvalue105 => 10,
+ typeInfo_destination => "invalid",
+ typeInfo_origin => "invalid",
+ typeInfo_via => "invalid",
+ type_destination => "stop",
+ type_origin => "stop",
+ type_via => "stop",
+ useRealtime => 1
+ };
post_place($post, 'origin', @{$conf->{'from'}});
-
post_place($post, 'destination', @{$conf->{'to'}});
if ($conf->{'via'}) {