CURRENT_DATE text variable not working in all places, why?

According to KiCad docs the CURRENT_DATE text variable must contain Today’s date, in ISO format. See Schematic and PCB

And it works … well kind of. If I use it in a simple text in the schematic it gets replaced, but if I use it in the title block it doesn’t:

At the left you can see the variable replaced, but not in the Date field of the title block.

Is this on purpose?

Note: I want to get the current date when people prints the schematic while editing it and the last commit date when a CI/CD workflow does it.

Maybe it’s not available in the Drawing Sheet Editor

image

But the problem is in Eeschema. The value is expanded only at some places. And isn’t in the title block itself, just in a value entered in Eeschema …

IMHO shouln’t be the case

Although when I do put it in using the Drawing Sheet Editor and then preview it it seems to work . . .

image

image

Interesting, then it looks like a bug

I save my change and re-opened my Schematic, seems to work . . .

I can’t get it. Are you sure it wasn’t stored in your kicad_pro or kicad_sch file?

Not 100% sure I get what you mean . . .

Previously in my template I had ${ISSUE_DATE} so I simply changed this to ${CURRENT_DATE} saved my template and re-opened my Schematic . . . I did select CURRENT_DATE from the list rather than typing it all in, that might make a difference.

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