You are here

private static function Braintree_WebhookTesting::_timestamp in Commerce Braintree 7

1 call to Braintree_WebhookTesting::_timestamp()
Braintree_WebhookTesting::_sampleXml in braintree_php/lib/Braintree/WebhookTesting.php

File

braintree_php/lib/Braintree/WebhookTesting.php, line 43

Class

Braintree_WebhookTesting

Code

private static function _timestamp() {
  $originalZone = date_default_timezone_get();
  date_default_timezone_set('UTC');
  $timestamp = strftime('%Y-%m-%dT%TZ');
  date_default_timezone_set($originalZone);
  return $timestamp;
}