Download & Extend

Node Date as Tab field gives just timestamps

Project:Views Tabs
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi drupal community,
i've tried to use view tabs to order nodes by there creation date with the format "Y" (following to the php definition of date).
So I would expect that the modul order the nodes by the year of creation as tab field.
the problem is that I just get all the timestamps as tabs, there must be some error in the progression of the date value.

Does anybody have an idea how to solve this?

Comments

#1

Priority:normal» critical

I found the probmel in the include code of the module.
The date filds are just timestamps in the view request and the views tabs module is using the raw date timestamp without the format_date() function.
any idea how to change this?

#2

As seeder17 said, it's using the raw data for the date instead of the rendered value. The key to solving it would be in finding that formated value. I'm not needing this so won't be trying trying to patch it, but I had a similar issue (#559214: Custom dynamic marker fields) and managed to find the formatted value in the views array, but sorta hacky.

#3

Priority:critical» normal
Status:active» postponed (maintainer needs more info)

Please try against the latest dev release.

#4

Status:postponed (maintainer needs more info)» fixed

I can't reproduce this so I am going to assume it is fixed. My date showed up as the year just like I wanted it to. Use the latest release or dev release.

#5

Status:fixed» closed (fixed)

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