View Single Post
Old 09-28-2024, 02:01 PM   #7
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Quote:
Originally Posted by chaley View Post
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.
It works again! Fortunately my column was already defined with 'dd MMM yyyy'.

Wiggo is offline   Reply With Quote