Closed (fixed)
Project:
Date
Version:
6.x-2.2
Component:
Date API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2009 at 13:15 UTC
Updated:
22 Jun 2009 at 12:00 UTC
so far i've found 3 (what i think probably are) typos in the date_api_sql.inc file.
line 178 is:
$field = "STR_TO_DATE($field, '%Y-%m-%%dT%T')";
should be(?)
$field = "STR_TO_DATE($field, '%Y-%m-%d %T')";
line 178 is:
'd' => '%%d', 'j' => '%e',
should be(?)
'd' => '%d', 'j' => '%e',
line 178 is:
's' => '%%s',
should be(?)
's' => '%s',
am i correct in fixing those?
i know the first one (line 178) was stopping my '>=now()' from working correctly.
any ideas on this?
Comments
Comment #1
chadd commentedsorry, the second example is actually line 341 and the third example is 334
Comment #2
karens commentedThat is not a bug. The raw code has to look like that to make it through Drupal's processing, where the extra '%' gets stripped out.
Comment #3
chadd commentedif it supposed to be stripped out by drupal, should it still be displaying with the double %% in the view query when i preview the view?
my query is displayed to me as:
Comment #4
chadd commentedwhat about the extra 'T' on line 178?
Comment #5
karens commentedThe Views preview shows the query before it's processed. This code is correct.