Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
With a current CVS checkout, the 'Node: Posted Month' argument gives a value that is off by 1. For example, if I supply '9' it shows up as August.
I just used this little hack to fix the problem. Sorry I don't have time to prepare and upload a patch, but it's a very trivial change so I hope that's OK.
- $month = str_pad($query, 2, '0', STR_PAD_LEFT);
+ $month = str_pad($query, 2, '0', STR_PAD_LEFT) + 1;
Ta!
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedCheck for me and save me some time:
Does instead changing "2005{$month}01" to "2005{$month}15" on the next line also fix the problem?
Comment #2
telex4 CreditAttribution: telex4 commentedYep! :)
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedComment #4
(not verified) CreditAttribution: commentedComment #5
dianacastillo CreditAttribution: dianacastillo commentedIf you use M for a custom date in Views it puts the wrong month when it is the first of the month .
For example if the date is 4/1 it prints March 1
if you put "m" instead it works fine.
any other date other than the first also works okay , 4/2 prints April 2
has anyone else come across this and is there a solution?
I cant use the solution listed here because the problem only happens on the first of the month, not every day.
Comment #6
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue