If I understand this right http://drupal.org/node/388728

If I understand correctly Date changed from Hyphen to Dash.

I'm getting ANT titles that now have "Apr 26 &#8111 Apr 28"
Instead of a "-" that they had before.

Is this a ANT problem?

I opened an issue in ANT http://drupal.org/node/443438 but haven't heard back.

Just want to verify I'm barking at the right tree?
Is there an easy way to go back to hypen until ANT understand the dash?

Comments

linl’s picture

Hi,

I ran into the same problem. It happens because, for security reasons, Drupal strips HTML characters from the title on display.

I got round it by using the individual CCK date tokens for the from and to dates in my title pattern and putting in my own hyphen, rather than using the formatted value with the en dash.

thinguy’s picture

Thanks for responding. Sorry for being dense but what are the "CCK date tokens for the from and to dates"
I was using "[field_date-view]" which spit out the to and from date (Apr 24 -Apr 29)
Is there a token that spits out just the to (Apr 24) and another that does from (Apr 29)?

Thanks

linl’s picture

I'm not sure of the exact tokens you'd need for (Apr 24 -Apr 29), but you can see a list of all available tokens if you click "Replacement patterns" underneath the "Pattern for the title" box.

In my case, I wanted just years, something like 2003-2007, and so instead of using:

[field_date-view]

I used:

[field_date-yyyy]-[field_date-to-yyyy]

For what you need, it would be something like this:

[field_date-mon] [field_date-d] -[field_date-to-mon] [field_date-to-d]

I haven't tried it out as I don't have months or days in my data, only years, but hope that helps!

karens’s picture

Status: Active » Fixed

If it causes all these problems, I should change it back to a hyphen so it is handled correctly automatically. Sigh. It was changed because the dash is more 'proper' but I don't think it's worth the trouble, so I reverted the change and it's a hyphen again.

thinguy’s picture

Thanks. Working great.

Status: Fixed » Closed (fixed)

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