Date index for Sep 2003
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible bug in atkTimeAttribute->display()
- To: Date: Tue, 16 Sep 2003 13:06:01 -0400
- Delivered-to: mailing list achievo dot
- Mailing-list: contact achievo-help dot
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
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