Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2007 at 00:10 UTC
Updated:
27 Dec 2007 at 16:39 UTC
I have a Views 1.5 view that uses the Node: Posted Full Date argument. When I upgrade to Views 1.6, the query text DATE_FORMAT(FROM_UNIXTIME(node.created+$timezone), '%Y%m%%d') apparently gets passed to _db_query_callback() too many times because the %%d turns into 0. I can try to track this down further if it will help but I'll wait until asked in case you know immediately what the problem is.
Comments
Comment #1
BrianKlinger commentedI'm having the same issue.
Comment #2
mmorris commentedAlso ran into this. Any ideas on a patch? This problem is breaking a couple of our views.
Comment #3
BrianKlinger commentedI'm not sure if this is the "right way" to do it, but I needed a fix so I messed around with some things and found that if I put a \ in front of the d in %%d (so it looks like %%\d), everything parsed correctly. Change all 3 occurrences of %Y%m%%d to %Y%m%%\d and hopefully it'll fix all of yours like it appears to have fixed mine.
Comment #4
Sepulman commentedI used the patch posted here to solve this problem;
http://drupal.org/node/165611#comment-590536
Comment #5
bjaspan commentedIt does look to me like http://drupal.org/node/165611 is the same bug as I reported here. I will test that patch soon-ish and mark this issue duplicate if that patch fixes it. For now, I'm leaving this issue as active until I confirm it is the same bug (though I am pretty sure it is).
Comment #6
BrianKlinger commentedI applied the patch and took out my earlier fix and everything works correctly, so this patch fixed my problem with the date.
Comment #7
bjaspan commentedDuplicate of http://drupal.org/node/165611.