View Single Post
Old 01-26-2016, 03:15 PM   #961
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,015
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by MerlinMama View Post
...
I've been able to replace the current 'dateCreated' field with the date in my custom '#packaged' column, but the formatting for the date shows up wrong, no matter what changes I try in the personal.ini file. I would prefer it to be formatted in the same manner as the other entries (datePublished and dateUpdated), which I have as %%B %%d, %%Y.
Date objects passed in from Calibre columns were being converted to strings using the default format. I've added code so you can to *_format settings for those, too. For example with custom date column #custdate:

Code:
extra_titlepage_entries:calibre_cust_custdate
calibre_cust_custdate_format:%%Y-%%m-%%d
New test version posted (direct link)

Apply *_format ini option to date/time types. For calibre_* columns passed in.
Change deprecated has_key() to has_attr() on BS objects.
JimmXinu is online now   Reply With Quote