Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
driver timezone is public now
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Mar 2, 2016
1 parent 987e420 commit a54a0bc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions source/Spiral/Database/Entities/PDODriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ public function getType()
return static::TYPE;
}

/**
* Connection specific timezone, at this moment locked to UTC.
*
* @todo Support connection specific timezones.
* @return \DateTimeZone
*/
public function getTimezone()
{
return new \DateTimeZone(DatabaseManager::DEFAULT_TIMEZONE);
}

/**
* Enabled profiling will raise set of log messages and benchmarks associated with PDO queries.
*
Expand Down Expand Up @@ -605,15 +616,4 @@ protected function prepareDateTime(\DateTime $dateTime)
{
return $dateTime->setTimezone($this->getTimezone())->format(static::DATETIME);
}

/**
* Connection specific timezone, at this moment locked to UTC.
*
* @todo Support connection specific timezones.
* @return \DateTimeZone
*/
protected function getTimezone()
{
return new \DateTimeZone(DatabaseManager::DEFAULT_TIMEZONE);
}
}

0 comments on commit a54a0bc

Please sign in to comment.