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

Re: ISOTIME should have ISO format...



On Sat, Mar 18, 2000 at 06:28:00PM +0100, Roland Rosenfeld wrote:
> I noted, that the so called ISOTIME in WML has the format 
>  dd-mm-yyyy hh:mm:ss
> As far as I know, the "official" ISO time format is 
>  yyyy-mm-dd hh:mm:ss
> The attached patch changes this in WML.

BTW, Roland made the above patch for wml_1.7.4-6.2 in Debian unstable.
And indeed, this was recently implemented in WML 1.99.1 too.  :-)

Now the warning: it may break existing web sites, www.debian.org being one
of them, and my www.olvc.ab.ca site too, because I used something like this:

	$WML_SRC_ISOTIME =~ /(..)-(..)-(....) (..):(..):(..)/;
        local($time) = timelocal($6, $5, $4, $1, $2-1, $3);

which should be changed to:

	$WML_SRC_ISOTIME =~ /(....)-(..)-(..) (..):(..):(..)/;
	local($time) = timelocal($6, $5, $4, $3, $2-1, $1);

or something similar.  We'll just have to remember to change it when
www.debian.org (or master.debian.org) upgrades.  :-)

Other than this, and perhaps a few <ifeq> changes, I don't foresee any major
problem for www.debian.org to upgrade to wml_1.99.1 (or wml_2.0).  :-)

Incidentally, mp4h seems to be much faster for Pass2-intensive pages,
notably one that uses navbar with submenu etc.  Pass 2 used to take up to
7.5 seconds with mhc, and now it is more like 2.5 seconds with mp4h.  
I'm really happy!  (Merci beaucoup, Denis et al.!  :-)

Anthony

-- 
Anthony Fok Tung-Ling                Civil and Environmental Engineering
foka@ualberta.ca, foka@debian.org    University of Alberta, Canada
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com