Skip to content

Commit

Permalink
Fixes #4. DEFAULT_TIME_ZONE is not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Swientek committed Sep 4, 2013
1 parent f8d1f73 commit 9438694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Mailgun/Constants/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
const RECIPIENT_COUNT_LIMIT = 1000;
const CAMPAIGN_ID_LIMIT = 3;
const TAG_LIMIT = 3;
const DEFAULT_TIME_ZONE = "UTC";

//Common Exception Messages
const EXCEPTION_INVALID_CREDENTIALS = "Your credentials are incorrect.";
Expand Down
3 changes: 3 additions & 0 deletions tests/Mailgun/Tests/Messages/MessageBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ public function testSetDeliveryTime(){
$message->setDeliveryTime("January 15, 2014 8:00AM", "UTC");
$messageObj = $message->getMessage();
$this->assertEquals(array("o:deliverytime" => "Wed, 15 Jan 2014 08:00:00 +0000"), $messageObj);
$message->setDeliveryTime("January 15, 2014 8:00AM");
$messageObj = $message->getMessage();
$this->assertEquals(array("o:deliverytime" => "Wed, 15 Jan 2014 08:00:00 +0000"), $messageObj);
$message->setDeliveryTime("1/15/2014 13:50:01", "CDT");
$messageObj = $message->getMessage();
$this->assertEquals(array("o:deliverytime" => "Wed, 15 Jan 2014 13:50:01 -0600"), $messageObj);
Expand Down

0 comments on commit 9438694

Please sign in to comment.