News for hackers. Stuff that matters.
Re:JDateTime - Iranian (Shamsi) Date for PHP by phishphood on Saturday February 23, 2013 @06:20PM (#5271918)
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?

Re:JDateTime - Iranian (Shamsi) Date for PHP by dan1234 on Saturday February 23, 2013 @06:35PM (#5271957)
Looks as if lines 489 onwards are for detecting leap years.