Quote:
Originally Posted by Wiggo
But I get this error message for December, but the tag is still written - language thing?
Code:
calibre, version 7.19.0
FEHLER: Fehlgeschlagen: Unknown string format: 30 Dez 2023
|
Yes, it is a language problem. Calibre is trying to parse the date string to store it in the database and doesn't know what "Dez" means.
The right way to fix this is to change (if necessary) the definition of the #dateread column to have the format you want, 'dd MMM yyyy'. Once you do that then you don't need the format_date() at all. Simply copy the date from #startdates to #dateread as it is. Calibre will convert it to a date then display it using the format you specify in the column definition.
In this case the template becomes
Code:
program: sublist($#startdates, 0, 1, ',')
You can do it without using template mode if the date you want is the only value in #startdates.