When using the Draft: Updated field in a Views, one cannot change the format that the date appears in. When selecting any of the dropdown options (under the field's settings) none take affect.

The date is logged as such: yyyy-mm-dd hh:mm

I have tried to use the "time ago" option, but cannot.

Comments

darren.ferguson’s picture

Draft Views is using the date format in drupal, when it is changed the view does change.
Now in the draft module without views it will not change since that was a small hard coded piece to show the list if the views module portion was not installed.

If your still seeing this problem, can you provide version of views / drupal and draft module your using, i might have to set it up to determine whether an issue actually exists with the particular versions.

StevenSokulski’s picture

When editing a view (a clone of the original view provided by the Draft Views module) I can click on the Draft: Updated field (in the fields list of the views editor) and I am given the option to select from a select list of data formats or to enter a custom date format per standard PHP date formatting. These changes do not seem to take affect when I save the view.

I am using Views 6.x-2.8, which is currently shown to be the most recent version.

darren.ferguson’s picture

Assigned: Unassigned » darren.ferguson

Yep, the reason for this is the draft views module is constantly returning the date as 'small' in format-date by over-writing the view handler.

Will check how i can make this utilize the information in the view since it was done this way because our project needed this, will see if it can be over-written which i am sure it can be

StevenSokulski’s picture

Great, thanks!

darren.ferguson’s picture

Status: Active » Closed (fixed)

Fixed the issue where the formatting would not be adhered too in the draft view. Below commit is the cvs commit too the 6.x-1.dev branch for the module.

http://drupal.org/cvs?commit=321578

StevenSokulski’s picture

Status: Closed (fixed) » Fixed

Shouldn't this be changed to "fixed" and automatically closed after 2 weeks once its been verified that it works? If thats not procedure, feel free to switch it back.

darren.ferguson’s picture

Status: Fixed » Closed (fixed)