From b33bfcafb7c3b1b670b7ca7b46613a25589aff07 Mon Sep 17 00:00:00 2001 From: Cassidy Dingenskirchen Date: Sun, 29 Jun 2025 16:52:15 +0200 Subject: /checkin/add: datetime inputs, change intermediate stop input format to ISO8601 --- lib/Travelynx/Controller/Traveling.pm | 2 +- templates/add_intransit.html.ep | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 5ecfcc0..30c9d60 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -2617,7 +2617,7 @@ sub add_intransit_form { if ( $self->param('action') and $self->param('action') eq 'save' ) { my $parser = DateTime::Format::Strptime->new( - pattern => '%d.%m.%Y %H:%M', + pattern => '%FT%H:%M', locale => 'de_DE', time_zone => 'Europe/Berlin' ); diff --git a/templates/add_intransit.html.ep b/templates/add_intransit.html.ep index 9d711c9..193ec50 100644 --- a/templates/add_intransit.html.ep +++ b/templates/add_intransit.html.ep @@ -21,7 +21,7 @@
  • Eingabe der Fahrt als „Typ Linie Nummer“ oder „Typ Nummer“, z.B. „ICE 100“, „S 1 31133“ oder „ABR RE11 26720“
  • Wenn Nummer nicht bekannt oder vorhanden: einen beliebigen Integer eintragen, z.B. „S 5X 0“ oder „U 11 0“
  • -
  • Zeitangaben im Format DD.MM.YYYY HH:MM
  • +
  • Zeitangaben im Format YYYY-MM-DDTHH:MM.
  • Das ausgewählte Backend bestimmt die verfügbaren Halte für Start, Ziel und Route. Siehe auch stops.csv
  • @@ -50,8 +50,8 @@
    - %= text_field 'sched_departure', id => 'sched_departure', class => 'validate', required => undef, pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' - + %= datetime_field 'sched_departure', id => 'sched_departure', class => 'validate', required => undef +
    @@ -60,8 +60,8 @@
    - %= text_field 'sched_arrival', id => 'sched_arrival', class => 'validate', required => undef, pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' - + %= datetime_field 'sched_arrival', id => 'sched_arrival', class => 'validate', required => undef +
    -- cgit v1.2.3