Apollo Kitchens

Location: Worldwide - 2164 - Map

Date posted: PHP Error

PHP Error

strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead

/home/zikbay/public_html/themes/classified/views/Ads/ad/view_details.php(129)

117             <?php
118             $arrLocationParts = array();
119             if ($model->area!='')
120                 $arrLocationParts[] = $model->area;
121             if ($model->zipcode!='')
122                 $arrLocationParts[] = $model->zipcode;
123             if (intval(MapSettings::DISPLAY_MAP_ADS)==1  && !empty($model->lat) && !empty($model->lng))
124                 $arrLocationParts[] = '<a class="lnk-show-map" href="#">Map</a>';
125             if (count($arrLocationParts) > 0) :
126             ?>    
127                 <p><strong>Location:</strong> <?php echo implode(' - ',$arrLocationParts); ?></p>
128             <?php endif; ?>
129             <p><strong>Date posted:</strong> <?php if(!empty($model->create_time) && $model->create_time != '0000-00-00 00:00:00') echo date('F d, Y',strtotime($model->create_time)); ?></p>
130             <p><strong>Price:</strong> <?php if (isset($model->arrNotPaymentPriceOptions[$model->opt_price])) echo $model->arrNotPaymentPriceOptions[$model->opt_price]; else echo AdsSettings::CURRENCY.' '.$model->price; ?></p>
131             <p><strong>Ad ID:</strong> <?php echo $model->id; ?></p>
132             <?php if (AdsSettings::SHOW_VIEW_COUNTER == 1) : ?>
133             <p><strong>Views:</strong> <?php echo $model->viewed; ?></p>
134             <?php endif; ?>
135         </div>
136         <p class="reply-email"><a class="large-btn" href="<?php echo $this->createUrl('/Ads/ad/replyToAd',array('id'=>$model->id,'alias'=>str_replace(array(' ','/','\\'),'-',$model->title))); ?>">Reply by email</a></p>
137     </div>
138     <div class="document">
139         <?php
140         if(!empty($model->lat) && !empty($model->lng)) :
141             Yii::app()->clientScript->registerScriptFile('http://maps.googleapis.com/maps/api/js?sensor=false&key='.MapSettings::GAPI,CClientScript::POS_HEAD); ?>

Stack Trace

#1
+
 /home/zikbay/public_html/themes/classified/views/Ads/ad/view_details.php(129): strtotime("2014-02-27 12:37:44")
124                 $arrLocationParts[] = '<a class="lnk-show-map" href="#">Map</a>';
125             if (count($arrLocationParts) > 0) :
126             ?>    
127                 <p><strong>Location:</strong> <?php echo implode(' - ',$arrLocationParts); ?></p>
128             <?php endif; ?>
129             <p><strong>Date posted:</strong> <?php if(!empty($model->create_time) && $model->create_time != '0000-00-00 00:00:00') echo date('F d, Y',strtotime($model->create_time)); ?></p>
130             <p><strong>Price:</strong> <?php if (isset($model->arrNotPaymentPriceOptions[$model->opt_price])) echo $model->arrNotPaymentPriceOptions[$model->opt_price]; else echo AdsSettings::CURRENCY.' '.$model->price; ?></p>
131             <p><strong>Ad ID:</strong> <?php echo $model->id; ?></p>
132             <?php if (AdsSettings::SHOW_VIEW_COUNTER == 1) : ?>
133             <p><strong>Views:</strong> <?php echo $model->viewed; ?></p>
134             <?php endif; ?>
#4
+
 /home/zikbay/public_html/protected/modules/Core/extensions/web/FController.php(101): CBaseController->renderFile("/home/zikbay/public_html/themes/classified/views/Ads/ad/view_det...", array("model" => Annonce, "adCat" => Category), true)
096     
097     public function renderFile($viewFile,$data=null,$return=false)
098     {
099         //Track the current view file so the InlineViewWidget knows which view it belong to
100         $this->CurrentViewFile = $viewFile;
101         return parent::renderFile($viewFile, $data, $return);
102     }    
103 
104     /**
105     * Get message of current page and also previous page
106     * 
#7
+
 /home/zikbay/public_html/protected/modules/Ads/controllers/AdController.php(609): CController->render("view_details", array("model" => Annonce, "adCat" => Category))
604 
605             }        
606 
607         }
608 
609         $this->render('view_details', array('model'=>$model,'adCat'=>$adCat));    
610 
611     }
612 
613     
614 
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/zikbay/public_html/yii-1.1.7.r3135/framework/views/exception.php on line 217 2020-01-24 18:34:34 Apache/2.4.39 (Unix) OpenSSL/1.0.2k-fips Yii Framework/1.1.7