mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 08:48:11 +00:00
Enhance passenger API and web application functionality
This commit is contained in:
@@ -92,7 +92,6 @@ export default function SchedulesPage() {
|
||||
const departureAt = formData.get('departureAt') as string;
|
||||
const arrivalAt = formData.get('arrivalAt') as string;
|
||||
|
||||
// Convert datetime-local to ISO 8601
|
||||
const departureISO = new Date(departureAt).toISOString();
|
||||
const arrivalISO = new Date(arrivalAt).toISOString();
|
||||
|
||||
@@ -101,7 +100,7 @@ export default function SchedulesPage() {
|
||||
routeId: formData.get('routeId') as string,
|
||||
departureAt: departureISO,
|
||||
arrivalAt: arrivalISO,
|
||||
plannedTimes: [], // Will be auto-generated by backend based on route stops
|
||||
plannedTimes: [],
|
||||
};
|
||||
|
||||
if (editingSchedule) {
|
||||
|
||||
Reference in New Issue
Block a user