Welcome Guest, Not a member yet? Register   Sign In
a little bug in days_in_month() function !
#1

[eluser]josepichu[/eluser]
Hi!

I have found a little bug in days_in_month($month, $year) helper function.

I Agugust and September months, i have to write the month without a zero.
for example, if you write:

Code:
days_in_month(08,2012) // the function return '0'
days_in_month(8,2012) // the function return '31'

days_in_month(09,2012) // the function return '0'
days_in_month(9,2012) // the function return '30'

In the other months there is not problem with the zero.

a greeting.


Messages In This Thread
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 01:25 AM
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 04:53 AM
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 05:41 AM
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 08:10 AM
a little bug in days_in_month() function ! - by El Forum - 04-30-2012, 09:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB