Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » std.datevalidation.class.inc
std.datevalidation.class.inc [message #736] Sun, 01 April 2007 04:32 Go to previous message
null byte is currently offline  null byte
Messages: 1
Registered: March 2007
Junior Member
Hi,

I was reading through your std.datevalidation.class.inc to get some ideas on using regular expressions and think i found a bug:

In your:

function verifyTime($hours, $minutes, $seconds) 


I think the statement:

if ($hours > 24)


should actually be

if ($hours > 23)


as this would validate 24 as a valid hour where we would move to 00.


Anyway nice to see some well documented and formatted code Smile
 
Read Message
Read Message
Previous Topic: multi3 and multi4
Next Topic: multi2
Goto Forum:
  


Current Time: Sun Nov 24 23:54:22 EST 2024

Total time taken to generate the page: 0.00930 seconds