Closed (fixed)
Project:
Views TimelineJS integration
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2012 at 16:00 UTC
Updated:
29 Oct 2012 at 22:01 UTC
Add support for most common date field formats. Currently only timestamp is supported (node created, updated).
Comments
Comment #1
polI tried with this bit of code, and it works pretty good, so you can use any time format.
Comment #2
chromix commentedI used this code, instead, as strtotime can throw errors sometimes. The only hitch is that the Date field must be datestamp. This also supports endDates, handily enough.
Comment #3
polThe first parameter of
format_date()must be a timestamp and$fields['startDate']is not always a timestamp, that's why I usestrtotime().I made some improvements to the module, I'll post them tonight.
Comment #4
pol