Opened 9 years ago

Closed 9 years ago

#825 closed defect (fixed)

Dates with a month on January can't be displayed.

Reported by: codec Owned by: simon
Priority: minor Milestone:
Component: styles Version: 1.0
Keywords: Cc:

Description

If you enter a January month, and attempt to display it it doesn't display anything for the issued date. Feb-Dec seem to work ok. E.g. with the all.csl debug style
December 01, 2004
=> YEAR=2004 (04) MONTH=December(Dec/11/11) ACCESSED: YEAR=2007 (07)
Jan 1, 1991
=> YEAR=1991 (91) DAY=1st/1/01
Hmm - just noticed the fact that Dec comes out as month 11 may well be the problem here!

Change History (4)

comment:1 Changed 9 years ago by simon

  • Resolution set to fixed
  • Status changed from new to closed

(In [1843]) closes #815, date-part for month and day only work in the default formats (thanks codec)
closes #825, Dates with a month in January can't be displayed

comment:2 Changed 9 years ago by codec

  • Resolution fixed deleted
  • Status changed from closed to reopened

There is still an issue with this change I believe.
With the all.csl style, it shows
MONTH=November(Nov/11/10)
MONTH=March(Mar/3/2)
from the fragment

<date-part name="month" prefix=" MONTH=" form="long"/>

<date-part name="month" prefix="(" form="short"/>
<date-part name="month" prefix="/" form="numeric"/>
<date-part name="month" prefix="/" suffix=")" form="numeric-leading-zeros" />

so I think the numeric-leading-zeros is doing something odd.
This is with the current (14-Nov) code.

comment:3 Changed 9 years ago by dstillman

  • Component changed from uncategorized to styles
  • Owner changed from dstillman to simon
  • Status changed from reopened to assigned

comment:4 Changed 9 years ago by simon

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [1874]) closes #825: Dates with a month on January can't be displayed

Note: See TracTickets for help on using tickets.