Hi there,

I am trying to adjust the long/medium/short date format string. However, it seems that it can't handle all types of characters.

For example, when I type this into the "long" date custom format:
l, d F -|- H:i

The output on my page gives me this:
Sunday, 05 April |- 11:00

So it's missing one hyphen on that one.

Next example, and the one I would like to implement on my page:
l, d F 'y - H:i

I get:
Sunday, 05 Apr 09 09:00 '

It seems it cannot handle those ' signs either?

Does anyone know what's going on?

Thanks!

Comments

jimthunderbird’s picture

Hi,
I tried this on my localhost (Drupal 6.9) by going to admin/settings/date-time and try Custom Format, both formats you mentioned work for me. Could you specific how you get your result with more details?

Attitude is mind's paintbrush, it can color anything.

pbarnett’s picture

From the admin/settings/date-time page :-

A user-defined long date format. See the PHP manual for available options. This format is currently set to display as Sunday, 15 February '09 - 22:04.

Pete.

speis’s picture

I maybe forgot to mention I am using this field op type "date" in one of my "content types". So i didn't edit these fields within admin/settings/date&time but within the "content type" field. Could this be the issue?

speis’s picture

hi again,

i have set up a "custom content type" and added a field called "date" of type "date".
If I click on the "operations" link from within this custom "content type" i click on the link called "Additional Display Settings".

Within this menu i can set a custom format for long/medium/short "date display". So i have set the long fomat to:
l, d F 'y - H:i

Then I have a custom view, which displays all of these fields, also the date f.e. Which is displayed"

Sunday, 05 April09 11:00 '

As you can see, there's some strange thing going on. The ' is transferred to the end of the string, and the - isnt' showing at all?