View Single Post
Old 10-22-2024, 10:45 AM   #739
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,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Regarding format_date_field, something odd happened: I had a book today that matched all the criteria (added today, had the readinggoal tag, had a purchasesource and a non-0 cost).

However, when I used format_date_field() it didn't add the challenge tag. Changing it back to format_date() worked.

I tested with both $date and $$date.
format_date_field() takes the name of the field, not the value. So use format_date_field('date').

EDIT: until today's change is incorporated you must use format_date_field('timestamp') instead of 'date'.

Last edited by chaley; 10-22-2024 at 11:49 AM. Reason: Correction
chaley is offline   Reply With Quote