@@ -91,7 +91,14 @@ class Project extends Base_Controller {
// $where2['L.status'] = 1;
// $res = $this->Lamp_model->get_list_by_multi_join($where2, 'count(*) as total',NULL, NULL, $join, NULL, NUll, 'L', true);
// $data['lighting_count'] = $res['total'];
- $data['timezone'] = '';
+ $timeData = $this->Global_location_model->get_one(['id'=>$data['cityid']],'timezone');
+ if ($timeData['timezone'] < 0) {
+ $timezone = substr('00'.abs($timeData['timezone']), -2).':00';
+ $data['timezone'] = 'UTC/GMT -'.$timezone;
+ }else{
+ $data['timezone'] = 'UTC/GMT +'.$timezone;
+ }
if (empty($data['cityid'])) {
$data['countryId'] = 0;