11-04-2024, 11:53 AM | #751 |
Custom User Title
Posts: 9,568
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
It's not particularly important - just that ideally I was hoping that ColourA would only appear for the current date (e.g. it switches to ColourB at midnight).
|
11-05-2024, 07:15 PM | #752 |
Enthusiast
Posts: 39
Karma: 10
Join Date: Nov 2023
Device: Kindle Oasis
|
hi, i'm having problems with this template: Code:
program: format_date($#pubdate, 'dd MMMM yyyy') |
11-05-2024, 07:16 PM | #753 |
Custom User Title
Posts: 9,568
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Do you get the same results if you use $$#pubdate? $ is field, $$ is raw_field.
|
11-05-2024, 07:57 PM | #754 |
Enthusiast
Posts: 39
Karma: 10
Join Date: Nov 2023
Device: Kindle Oasis
|
it worked, but now there's a problem with the sorting order
|
11-05-2024, 08:09 PM | #755 |
Custom User Title
Posts: 9,568
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Try going to the add custom columns dialog and editing the column to set the sort to 'date.'
|
11-05-2024, 08:27 PM | #756 |
Enthusiast
Posts: 39
Karma: 10
Join Date: Nov 2023
Device: Kindle Oasis
|
This is how the column is configured
|
11-05-2024, 08:33 PM | #757 |
Custom User Title
Posts: 9,568
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm not sure then - I seem to recall there were some oddities with the date sorting but I'm not sure if its the case here. @chaley?
|
11-05-2024, 10:45 PM | #758 |
Grand Sorcerer
Posts: 12,032
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The problem is that the date is in non-English text. Sorting composites by date only works with English dates, and then only in most cases. The reliable solution is to sort the source column, pubdate.
I suspect a better solution would be to supply a format for pubdate (using a tweak) instead of creating a composite column. |
11-05-2024, 10:47 PM | #759 |
Custom User Title
Posts: 9,568
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Would non-English also explain the BAD DATE error when using field()?
Last edited by ownedbycats; 11-05-2024 at 10:49 PM. |
11-05-2024, 11:02 PM | #760 | |
Enthusiast
Posts: 39
Karma: 10
Join Date: Nov 2023
Device: Kindle Oasis
|
Quote:
I think this is a better option for what I was trying to do. |
|
11-05-2024, 11:09 PM | #761 |
Grand Sorcerer
Posts: 12,032
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
11-07-2024, 03:52 PM | #762 |
Custom User Title
Posts: 9,568
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
The inline documentation was updated in order to make note of this.
Code:
'It is best if the date is in ISO format because using other date ' 'formats often causes errors because the actual date value cannot be ' 'unambiguously determined. Note that the format_date_field() function ' 'is both faster and more reliable. ' |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 178 | Yesterday 03:14 PM |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 03:35 AM |
Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 12:37 PM |
[OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 10:19 PM |
Thread management questions | meme | Feedback | 6 | 01-31-2011 06:07 PM |