Skip to content

Commit

Permalink
Removed system's timezone settings error.
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Aug 20, 2016
1 parent d1bf582 commit 404e519
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Hprose/Swoole/Http/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
namespace Hprose\Swoole\Http;

use Hprose\Swoole\Timer;
use DateTime;

class Service extends \Hprose\Http\Service {
const ORIGIN = 'origin';
Expand All @@ -35,8 +34,7 @@ class Service extends \Hprose\Http\Service {
private $etag;
public function __construct() {
parent::__construct();
$now = new DateTime();
$this->lastModified = $now->format(DateTime::RFC2822);
$this->lastModified = gmstrftime("%a, %d %b %Y %T %Z", time());
$this->etag = '"' . dechex(mt_rand()) . ':' . dechex(mt_rand()) . '"';
$this->timer = new Timer();
}
Expand Down

0 comments on commit 404e519

Please sign in to comment.