I'm using the datefield on a node - and when I output the field with views - the date is output twice.

A guess, is that it outputs it twice as if it were a range - but just outputs it the second time with empty values.

Normally that would just give me an empty output - but I need to use a custom format (where date, month and year is wrapped in divs) - and so the divs are output twice - so it looks like this:

8.
Juli
2011
.


The date format I'm using is:
<\d\iv \c\l\a\s\s="\d">j.<\d\iv \c\l\a\s\s="\m">G<\d\iv \c\l\a\s\s="\y">Y

I just updated to date-6.x-2.7 - to verify the problem also exists there.

Comments

klavs’s picture

Trying to not make the browser interpret the html as.. html :)


8.
Juli
2011
.
klavs’s picture

<span class="field-content">
<span class="date-display-single">
<div class="d">8.</div>
<div class="m">Juli</div><span class="field-content">
<span class="date-display-single">
<div class="d">8.</div>
<div class="m">Juli</div>
<div class="y">2011</div>
<div class="d">.</div>
<div class="m"></div>
<div class="y"></div>
</span>
</span>
<div class="y">2011</div>
<div class="d">.</div>
<div class="m"></div>
<div class="y"></div>
</span>
</span>
klavs’s picture

arghh - bad paste.. and now for the hopefully last time - the output from the view:

<span class="field-content">
  <span class="date-display-single">
    <div class="d">8.</div>
    <div class="m">Juli</div>
    <div class="y">2011</div>
    <div class="d">.</div>
    <div class="m"></div>
    <div class="y"></div>
  </span>
</span>
damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.