[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Build problem? Many wrong dates in website



On Mon, Aug 18, 2003 at 09:31:31PM +0200, Josip Rodin wrote:
> On Mon, Aug 18, 2003 at 08:55:50PM +0200, Jens Seidel wrote:
> > I'm sure that the mentioned date is the build time. There seems to something 
> > wrong with the build system (wml, ...).
> 
> It's not the build system, it's broken input data. past_event template has
> 
>         <strong><langwhen/>:</strong>  <date/><br />
> 
> But this "date" variable isn't defined. We need something to copy what's
> essentially already in events_common template

It seems to be a synchronisation issue between event.wml and
past_event.wml. See the diff (only relevant parts):

--- event.wml	Thu Aug 14 13:25:34 2003
+++ past_event.wml	Thu Aug 14 13:23:53 2003
@@ -8,23 +9,13 @@
 
 <h2><pagetitle/></h2>
 
-	<strong><langwhen/>:</strong>  <:
-if ("<startdate>" =~ /^\d{4}-\d{2}-\d{2}$/)
-{
-	print &daterange("<startdate/>", "<enddate/>");
-}
-else
-{
-	print "<date/>";
-}
-:><br />
+	<strong><langwhen/>:</strong>  <date/><br />
 	<strong><langwhere/>:</strong>  <where/><br />

So the (short) solution is to copy the code.
What has to be done to make something like this not happen again is
another question...

Gruesse,
-- 
*** Frank Lichtenheld <frank@lichtenheld.de> ***
          *** http://www.djpig.de/ ***
see also: - http://www.usta.de/
          - http://fachschaft.physik.uni-karlsruhe.de/



Reply to: