You are here

public function Store::getTimezone in Commerce Core 8.2

Gets the store timezone.

Used when determining promotion and tax availability.

Return value

string The timezone.

Overrides StoreInterface::getTimezone

File

modules/store/src/Entity/Store.php, line 150

Class

Store
Defines the store entity class.

Namespace

Drupal\commerce_store\Entity

Code

public function getTimezone() {
  return $this
    ->get('timezone')->value;
}