Fix register link
[living-lab-site.git] / application / helpers / MY_date_helper.php
1 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
3 function human_gmt_to_human_local($human_gmt, $time_zone = NULL)
4 {
5         if (! $time_zone)
6                 $time_zone = 'UTC';
7         
8         return date('Y-m-d H:i:s',  
9                         gmt_to_local(
10                                 strtotime($human_gmt), 
11                                 $time_zone, 
12                                 TRUE)) . ($time_zone == 'UTC' ? ' (UTC)' : '');
13 }
14
15 /* End of file MY_date_helper.php */
16 /* Location: ./application/helpers/MY_date_helper.php */