I'm working on setting up an events calendar and have it almost working. The only thing that I can't get quite right is for it just to display the time instead of the date and time. I only have the options for "Long", "Medium", "Short", and "As time ago" formats. I am using the Date module and I added a custom format and cleared the Cache, but my custom format didn't show up. Do I need to add the custom format somewhere else for it to show up?

Comments

merlinofchaos’s picture

Status: Active » Closed (won't fix)

The submission guidelines clearly state that this should be filed against the module owning the field you're using.

compuguru’s picture

Project: Views (for Drupal 7) » Date
Version: 6.x-2.6 » 6.x-2.4
Component: User interface » Miscellaneous
Status: Closed (won't fix) » Active

Sorry - didn't see that part. Updated.

arlinsandbulte’s picture

Sounds to me like you need to add a Date 'Format Type'
IMO, Drupal time formats are not very user friendly or intuitive, so it is easy to miss a step.
Here is a step by step:

First, create a custom time format. You do this here: /admin/settings/date-time/formats/add
This creates a new custom time format string, but does not attach it to anything to select it.

Next, Add Format Type by going here: /admin/settings/date-time/formats/add Enter a format name & type (machine name) and click 'Save configuration.'
This creates a container for our format string, but next we need to configure what format string it contains...
_(I think this is the step you are missing)_

So, lastly, under the select list for your new Format Type, choose your desired format string.

Then, you will need to clear the cache and all should be good!

compuguru’s picture

Status: Active » Fixed

Thanks! I got it mostly setup earlier, but I guess the cache didn't clear or something because it showed up now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

texas-bronius’s picture

thanks!