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

Joaquim Homrighausen joho at webbplatsen.se
Mon Sep 6 12:21:06 PDT 2004


This is a re-post.


----- Vidarebefodrat meddelande från joho at webbplatsen.se -----
   Datum: Mon, 24 May 2004 16:42:03 +0200

  * 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

----- Slut på vidarebefordrat meddelande -----


More information about the kronolith mailing list