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.

CommentFileSizeAuthor
archive-view-fix.txt404 byteserik.erskine
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sander_123’s picture

Thanks! The patch works fine :)

merlinofchaos’s picture

Status: Needs review » Fixed

Committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.