don't know much about how Iranian dates work so I peeked inside the code to see the actual conversion.
Line 482 - $g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
Umm, what about leap years, you know the ones that have 29 days in February?