lib/chart: Use PHP's DateTime instead of our DateTimeFactory

I'm about to drop the DateTimeFactory because date_default_timezone_set() in combination w/ PHP's DateTime is sufficient.

refs #6778
This commit is contained in:
Eric Lippmann 2015-05-19 11:10:35 +02:00
parent e46af79229
commit e87067db3b
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
namespace Icinga\Chart\Unit;
use Icinga\Util\DateTimeFactory;
use DateTime;
/**
* Calendar Axis Unit that transforms timestamps into user-readable values
@ -81,7 +81,7 @@ class CalendarUnit extends LinearUnit
*/
private function calculateLabels($unit)
{
$fac = DateTimeFactory::create();
$fac = new DateTime();
$duration = $this->getMax() - $this->getMin();