Date index for Sep 2003


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

Possible bug in atkTimeAttribute->display()



Hello,

I'm pretty sure that this time is indeed a bug ;)

If you will try to call atkTimeAttribute->display() with something like array('hours'=>00, 'minutes'=>[XX]), you will notice that it returns an empty string instead of '00:XX'. Basically any time between 00:00 and 00:59 will not be displayed.

In the display() method you have:

  if (empty($value["hours"])) return "";

I guess this should be replaced with something like:

  if (empty($value["hours"]) and $value["hours"]!="00")
	return "";


This bug also affects atkDateTimeAttribute->display(), which relies on atkTimeAttribute->display().



Best regards, Sebastian

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


http://www.achievo.org/lists achievo.org - ©1999-2002 ibuildings.nl BV