Skip to content

Backend expects time with timezone at this moment #95

@lukaskett

Description

@lukaskett

Describe the bug
Backend expects time with timezone but according to iof xml xsd it's not mandatory. For example tag like this:

<StartTime>2025-11-14T19:43:00</StartTime>

To Reproduce
Upload attached xml with start list.

vysledky_nove.xml

Expected behavior
Upload should work without issues

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Error log:

PrismaClientValidationError:
Invalid `prisma.competitor.create()` invocation:

{
  data: {
    class: {
      connect: {
        id: 105
      }
    },
    firstname: "Martin",
    lastname: "Šimáček",
    nationality: undefined,
    registration: "RCZ9701",
    license: null,
    organisation: "Reprezentace juniorů a dospělých",
    shortName: undefined,
    bibNumber: 18,
    startTime: "2025-11-14T19:43:00",
               ~~~~~~~~~~~~~~~~~~~~~
    finishTime: null,
    time: null,
    card: 7002111,
    status: "Inactive",
    lateStart: false,
    team: undefined,
    leg: undefined,
    externalId: "RCZ9701",
    note: null,
    updatedAt: new Date("2025-11-22T15:07:36.736Z")
  }
}

Invalid value for argument `startTime`: premature end of input. Expected ISO-8601 DateTime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugSomething isn't workingpriority: highIssues that are important and need to be addressed soon but are not causing an immediate crisis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions