How do I add the date...ie "Wednesday, December 2, 2009" before the time... with out breaking it?

Comments

jerdiggity’s picture

Assigned: Unassigned » jerdiggity

Don't have time to patch it, but you could manually do this:

  1. Open the file timeblock.module
  2. Scroll to (approx) line 45 where it says:
    myclock="<strong>';
    $timeblock .= $thetimelabel;
  3. Between myclock="<strong>'; and $timeblock .= $thetimelabel;, add the following:
    $addthedate = t(strftime("%A, %B %e, %Y", time())) . t("<br/>");
    $timeblock .= $addthedate;
  4. The code in #2 (above) should now look like this:
    myclock="<strong>';
    $addthedate = t(strftime("%A, %B %e, %Y", time())) . t("<br/>");
    $timeblock .= $addthedate;
    $timeblock .= $thetimelabel;

Hope that helps... :)

jeremy

adavis.co.uk’s picture

Nice module - solved a need quickly for me. But the above change only changes the time to a date/time block in one place, the module has two places that need to be changed. Look further down the code to find similar code. Also it would probably be best to omit the style info from the block and add a class instead.