Add @link comment to the data source
Move preg_replace outside loop and remove loop.
Remove DateTime class