Node Date as Tab field gives just timestamps
seeder17 - September 22, 2009 - 17:25
| Project: | Views Tabs |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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?

#1
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.