You are here

protected function BaseMoment::getDefaultTimezone in Twig Extender 4.x

Same name and namespace in other branches
  1. 8.4 modules/twig_extender_extras/src/Plugin/TwigPlugin/BaseMoment.php \Drupal\twig_extender_extras\Plugin\TwigPlugin\BaseMoment::getDefaultTimezone()
  2. 8.2 modules/twig_extender_extras/src/Plugin/TwigPlugin/BaseMoment.php \Drupal\twig_extender_extras\Plugin\TwigPlugin\BaseMoment::getDefaultTimezone()
  3. 8.3 modules/twig_extender_extras/src/Plugin/TwigPlugin/BaseMoment.php \Drupal\twig_extender_extras\Plugin\TwigPlugin\BaseMoment::getDefaultTimezone()

Get default drupal timezone.

Return value

string Return timezone.

See also

https://api.drupal.org/api/drupal/core%21includes%21bootstrap.inc/functi...

1 call to BaseMoment::getDefaultTimezone()
BaseMoment::getMoment in modules/twig_extender_extras/src/Plugin/TwigPlugin/BaseMoment.php
Get moment library.

File

modules/twig_extender_extras/src/Plugin/TwigPlugin/BaseMoment.php, line 44

Class

BaseMoment
Base class for moment plugins.

Namespace

Drupal\twig_extender_extras\Plugin\TwigPlugin

Code

protected function getDefaultTimezone() {
  return date_default_timezone_get();
}