Format of <date> in Netlist *.xml File

The creation date of the *.xml file is saved in the file between the <date> </date> tags. I came across inconsistencies between KiCad 6.x and 7.x *.xml files:

<date>28/03/2023 14:09:28</date>
<tool>Eeschema (6.0.4)</tool>
<date>7/11/2023 2:11:42 PM</date>
<tool>Eeschema 7.0.2</tool>

As shown above, my 6.x installation uses the format DD/MM/YYYY 24:00:00 while my 7.x uses M/D/YYYY 12:00:00 AM.

Is there a way for me to influence which format is used by KiCad or is this hard-coded somewhere?

Mine’s different even for 6.0.4. Don’t have any v7 XML netlist files to hand.

    <date>Sun 27 Mar 2022 14:45:06</date>
    <tool>Eeschema 6.0.4</tool>

I think the problem is we aren’t formatting the date in any particular format and it’s defaulting to %c of strftime.

Ideally we would use ISO8601 but instead it’s user OS and user locale dependent.

1 Like

I agree. I will create a feature request on GitLab.
Done: Change Format of Netlist *.xml File to ISO 8601 (#15185) · Issues · KiCad / KiCad Source Code / kicad · GitLab

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.