calendar.php: changed way that dates from database are handled so that events show up on Firefox.