the code form the document.

  echo theme('jquery_countdown', array(
    'since' => date("F d, Y g:i a", mktime(0,0,0,0,0,2009)),
    'format' => 'YOWDHMS',
    'description' => t('Since New Year'),

when i put this code in the story, and change the mktime(0,0,0,10,20,2013)set the input type to php,but it can't work, why.


ulsc’s picture

change "since" to "until" then it will work.

Letharion’s picture

I'm using D7, and the example doesn't work at all. Perhaps the API has just changed since then. This got things working for me.

echo theme('jquery_countdown', array(
  'id' => 'countdown_' . $cid,
  'options' => array(
    'until' => date('F d, Y g:i a', $countdown['target_time']),
    'format' => $countdown['output_format'],
    'description' => '',
  'content' => date('Y-M-D H:i:s', $countdown['target_time']),
Letharion’s picture

Title:why can't work.» Documentation on project page needs to be updated.
Version:6.x-1.5» 7.x-1.x-dev
Assigned:runeveryday» Unassigned
Category:support» task
Priority:Major» Normal