change created_on by created_by & fix a php error using date()