Skip to content

Commit

Permalink
Bugfix invalid datetime format
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Zukowski committed Nov 25, 2015
1 parent 7a82032 commit 738b102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Entity/Classroom.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private function __construct($title, $presenterEmail, \DateTime $startTime)
{
$this->title = (string)$title;
$this->presenterEmail = (string)$presenterEmail;
$this->startTime = $startTime->format('d/m/Y H:i:s');
$this->startTime = $startTime->format('m/d/Y H:i:s');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Entity/ClassroomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ClassroomTest extends \PHPUnit_Framework_TestCase
/** @var array */
private $expected = [
'title' => 'Title',
'start_time' => '30/12/2015 12:30:40',
'start_time' => '12/30/2015 12:30:40',
'presenter_email' => '[email protected]',
'language_culture_name' => '',
'extend_duration' => '',
Expand Down

0 comments on commit 738b102

Please sign in to comment.