Bug 486495

Summary: Importing Indian rail ticket PDF does not import departure time
Product: [Applications] KDE Itinerary Reporter: Yogesh <yogesh.girikumar>
Component: generalAssignee: Volker Krause <vkrause>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 12.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of itinerary on Android showing arrival time but no departure time

Description Yogesh 2024-05-03 09:56:02 UTC
Created attachment 169128 [details]
Screenshot of itinerary on Android showing arrival time but no departure time

SUMMARY

Importing a rail ticket booked on IRCTC (the de-facto booking platform for Indian rail) fails to include the departure time for train trips. Arrival time is captured properly.

SOFTWARE/OS VERSIONS
Itinerary on Android : 24.07.70 (nightly - 5537e5a)
Android - 12
Qt Version: 6.6.2
Engine Version: 6.1.40
PDF support: Poppler (23.09.0)
Barcode decoder: ZXing (2.1.0)
Extractors: 240
Comment 1 Volker Krause 2024-05-03 16:27:57 UTC
Git commit e51ef8f70420e3381d29504fa9512521089c1936 by Volker Krause.
Committed on 03/05/2024 at 16:23.
Pushed by vkrause into branch 'master'.

Fix IRCTC departure time extraction

There's apparently a second date/time format in use here, support that
as well.

M  +5    -2    src/lib/scripts/irctc.js

https://invent.kde.org/pim/kitinerary/-/commit/e51ef8f70420e3381d29504fa9512521089c1936
Comment 2 Volker Krause 2024-05-03 16:47:57 UTC
Git commit 6074f002d9e754b33ac1808805dbb38c92eba07c by Volker Krause.
Committed on 03/05/2024 at 16:47.
Pushed by vkrause into branch 'release/24.05'.

Fix IRCTC departure time extraction

There's apparently a second date/time format in use here, support that
as well.
(cherry picked from commit e51ef8f70420e3381d29504fa9512521089c1936)

M  +5    -2    src/lib/scripts/irctc.js

https://invent.kde.org/pim/kitinerary/-/commit/6074f002d9e754b33ac1808805dbb38c92eba07c