You are here

public static function Braintree_TestHelper::nowInEastern in Commerce Braintree 7

2 calls to Braintree_TestHelper::nowInEastern()
Braintree_SettlementBatchSummaryTest::testGenerate_canBeGroupedByACustomField in braintree_php/tests/integration/SettlementBatchSummaryTest.php
Braintree_SettlementBatchSummaryTest::testGenerate_returnsTransactionsSettledOnAGivenDay in braintree_php/tests/integration/SettlementBatchSummaryTest.php

File

braintree_php/tests/TestHelper.php, line 108

Class

Braintree_TestHelper

Code

public static function nowInEastern() {
  $eastern = new DateTimeZone('America/New_York');
  $now = new DateTime('now', $eastern);
  return $now
    ->format('Y-m-d');
}