Autonode title generates the wrong date when using parts, e.g. [field_xx-dd], [field_x-dd], [field_xx-month]. It appears that the actual date minus 1 day is being used. The date field being used, xx, contains a value that has granularity only to the day level with no timezone processing. The site timezone is Chicago.

The view token [field_xx-view] works correctly.

This site us using the latest dev version of Date (6.x-2.x-dev) and Auto_Nodetitle (6.x-1.x-dev).

Comments

choster’s picture

We've also been getting incorrectly generated dates, decremented by one unit of the highest granularity of date part (i.e. when granularity is set to day, auto_nodetitle gives us day-1; if set to month, the title is month-1, etc.).

This had been reported as a Date module issue (#313704: Date tokens returning earlier date); however, as Pathauto is interpreting the date tokens correctly, perhaps there is work to be done on the Auto Nodetitle side as well.

The most recent theory in the Date module thread was to change system weights; however, giving auto_nodetitle a heavier module weight in our system table did not alter our output.

aren cambre’s picture

subscribe

bshensky’s picture

subscribe - bug also appears in Drupal 5.16 + Date 5.x-2.5 + Automatic Nodetitles 5.x-1.2

bshensky’s picture

The patch at http://drupal.org/node/313704 - #3 did solve my problem. This suggests that the problem is not with Auto Nodetitles or Token at all. YMMV.

fago’s picture

Status: Active » Closed (duplicate)

So the issue seems to be in date.