if a cck datefield is set as x axis, the output shows span tags like this: 11/18/10

This is just in google charts from what i've found using bar chart.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rsevero’s picture

Status: Active » Postponed (maintainer needs more info)

And how do you expect it to be?

apmsooner’s picture

Sorry i should have input the code tags:

I mean the ouput doesn't look like 11/18/10 when rendered. It looks like <span class="date-display-single">11/18/10</span>

So what I'm saying is the actual html code is being ouput instead of just the value.

apmsooner’s picture

FileSize
16.78 KB

See attached screenshot for better explanation of the issue please.

rsevero’s picture

Thanks for the info.

Unfortunately I can't reproduce this issue here.

What version are you using? Please test the lastest one: 6.x-1.1.

If this doesn't solve the problem: are you doing some kind of special processing in the date field? Maybe rewriting the output of the field. Try to set the "Strip HTML tags" from the date field in Views.

apmsooner’s picture

Using latest dev version because the 6.x-1.1 download link isn't working yet. nothing tricky here, just default date format, no rewrite output of field, and I've tried stripping the html checkbox and same thing. I guess I'll wait for the 1.1 version download link to work and see if it fixes. Its only happening on google charts by the way. I'd use bluff instead but there are separate issues with those charts that give me additional problems.
Thanks

rsevero’s picture

Assigned: Unassigned » rsevero

The dev release for tomorrow should be as up to date as the stable release. Please try it if the stable isn't available yet.

You mentioned issues with Bluff. Could you explain them in separate issues?

apmsooner’s picture

Sure i'll post them but just keep in mind the version i'm on so you may or may not have fixed them.

bverc’s picture

Version: 6.x-1.x-dev » 6.x-1.1
FileSize
19.23 KB

I'm also having this issue in version 6.x-1.1.

akin.demirci’s picture

I had the same issue with Google Charts.
You have to override the date module's theme function that adds the tag around the date value in your own theme's template.php like this:

function YOURTHEMENAME_date_display_single($date, $timezone = NULL) {
return $date . $timezone;
}

Don't forget to flush the theme registry after adding the function.

newnewuser’s picture

sub

drudrew’s picture

FileSize
12.95 KB
15.8 KB

Take a look at my screenshots: one without theming, the other with theme's help (thank you, akno)
#9 seems the only viable solution for the time being. Customfield does not work properly, either.

Strip HTML tags should be made to do what it promises to do from a usability point of view. I bet it strips the HTML tags in one of many processing layers. Then, some other layers add some more tags.

jay.lee.bio’s picture

Somehow I landed here while searching for a solution for Google Chart Tools. #4 worked for me. Thanks!