Is there a way to customize (or otherwise improve) the way the playlist date is displayed when including it as a table field using Views? I'll be more explicit below.

I'm using Views 5x-1.6 to create a custom "tracker" table that uses a filter to display Program Playlist node type only. One of my options in the field list is Station Playlist: Date, but my complaint is that I do not like how the data is formatted for display in this field.

For a playlist with a date of September 25, 2007 (arbitrary example), it presently appears as:

25-9-07

...which in my opinion is not very user-friendly. I would much prefer something like:

9/25/07

...or better yet, the ability to choose from a few different options.

I considered using the Node: Created Time field that is built into the Views module, but this won't get the job done because the date the program aired could be different from the date the deejay posts the playlist.

Please help! The date looks quite lovely as it appears in the Playlist Title... and I just wish that I could get it to display consistently in "views".

CommentFileSizeAuthor
#1 station_playlist_178666.patch961 bytesdrewish

Comments

drewish’s picture

Title: Playlist date in Views » Playlist date in Views not formatted according to the setting
Category: support » bug
Status: Active » Needs review
StatusFileSize
new961 bytes

good catch. it's got a hard coded format string. the attached patch uses the playlist title setting that can be accessed from admin/settings/station/playlist

drewish’s picture

Status: Needs review » Fixed

committed to DRUPAL-5 and HEAD

shawnc’s picture

Forgive me, but do I just copy and paste that code anywhere into the file
modules/ station/ playlist/ views.inc ?

shawnc’s picture

Okay, I tried doing what I asked if I should do... I replaced the existing code with the new code, but I see no change. Help!

shawnc’s picture

Nevermind-- I figured it out. Thanks for your help!

Anonymous’s picture

Status: Fixed » Closed (fixed)