[kronolith] Show week number, HEAD-20040524, updated

Joaquim Homrighausen joho at webbplatsen.se
Mon May 24 07:42:03 PDT 2004


  * Quoting Joaquim Homrighausen <joho at webbplatsen.se> on 2004-05-24:

Sorry about the previous post, I screen-copied an Emacs session ;)

This one is also updated to show the week number when viewing a single day.
I'm not saying this is how it should be done, but in very many situations
where work, projects or vacation is involved, one of the most commonly asked
for items is "Oh yeah, what week is that".. at least in those places I am :-)


[Suggestion for change/patch]

templates/week/head.inc, line 5:

[previous]

<b><?php echo
$this->days[$this->startDay]->getTime($prefs->getValue('date_format')) . ' -
' . $this->days[$this->endDay]->getTime($prefs->getValue('date_format'))
?></b>

[new]

<b><?php echo
$this->days[$this->startDay]->getTime($prefs->getValue('date_format')) .
'&nbsp;&nbsp;(' ._("Week"). ' ' .
$this->days[$this->startDay]->getTime('%V').
')&nbsp;&nbsp;'.$this->days[$this->endDay]->getTime($prefs->getValue('date_format'))
?></b>


templates/day/head.inc, line 5:

[previous]

<b><?php echo $this->getTime($prefs->getValue('date_format')) ?></b>

[new]

<b><?php echo $this->getTime($prefs->getValue('date_format')) .
'&nbsp;&nbsp;(' ._("Week"). ' '.$this->getTime ('%V'). ')' ?></b>


-Joaquim




More information about the kronolith mailing list