Closed (fixed)
Project:
Date
Version:
6.x-2.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2009 at 02:32 UTC
Updated:
11 Dec 2009 at 21:40 UTC
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
Comment #1
merlinofchaos commentedThe submission guidelines clearly state that this should be filed against the module owning the field you're using.
Comment #2
compuguru commentedSorry - didn't see that part. Updated.
Comment #3
arlinsandbulte commentedSounds 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!
Comment #4
compuguru commentedThanks! I got it mostly setup earlier, but I guess the cache didn't clear or something because it showed up now.
Comment #6
texas-bronius commentedthanks!