ereg eradication
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index dbd7e0e..7f60734 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -460,7 +460,7 @@
 		$hour = (strlen($ex['0']) == 1) ? '0'.$ex['0'] : $ex['0'];
 		$min  = (strlen($ex['1']) == 1) ? '0'.$ex['1'] : $ex['1'];
 
-		if (isset($ex['2']) AND ereg("[0-9]{1,2}", $ex['2']))
+		if (isset($ex['2']) && preg_match('/[0-9]{1,2}/', $ex['2']))
 		{
 			$sec  = (strlen($ex['2']) == 1) ? '0'.$ex['2'] : $ex['2'];
 		}