Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2010 at 12:34 UTC
Updated:
30 Oct 2010 at 09:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jcmarco commentedComment #2
jcmarco commentedI have extended the most usual date formats
From:
http://us.php.net/manual/en/function.date.php
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
http://developer.postgresql.org/pgdocs/postgres/functions-formatting.html
Comment #3
merlinofchaos commentedThe '%%d' is not a typo. It is there because '%d' will get processed by db_query() and will mess up any arguments to the query.
Comment #4
jcmarco commentedOk, I found it while testing with more strings.
I even found that %b requires to be escaped as well.
Changed for a feature request to support more strings.
I am working in a patch for views_handler_field_date.inc to support
date formats configured with Data API, and option to support native
date_format in queries to solve problems grouping information.
Comment #5
jcmarco commentedComment #6
merlinofchaos commentedIt would be true for %b, %d, %s, %f -- I see a %s in there too. Odd that %d was covered and %s was not.
Comment #7
jcmarco commentedYou were absolutely right!
The %s was wrong.
I didn't translate %f as it seems that using microseconds is not usual.
Do you consider a good idea trying to translate all the strings from http://us.php.net/manual/en/function.date.php?
Comment #8
robby.smith commentedsubscribing
Comment #9
merlinofchaos commentedUnsurprisingly, this does not apply to D7. COmmitted to D6 branches.
Comment #10
dawehnerPorted and commited.