Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The views_date_sql_format function in includes/handlers.inc produces the wrong date format for postgresql. The resulting string contains 'YY' (for 2 digit years) and should contain 'YYYY'.
This is exhibited in an unchanged "archive" view, which provides a block containing a list of months. The month names are all displayed the same (the current month), and the links are to archive/0810 instead of archive/200810.
I have included a patch which should fix this issue.
Comment | File | Size | Author |
---|---|---|---|
archive-view-fix.txt | 404 bytes | erik.erskine |
Comments
Comment #1
sander_123 CreditAttribution: sander_123 commentedThanks! The patch works fine :)
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted!