View Single Post
Old 09-28-2024, 01:49 PM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wiggo View Post
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.
chaley is offline   Reply With Quote