You are here

public function DatexPoorMansGregorianCalendar::__construct in Datex 8

Overrides DatexPartialImplementation::__construct

File

src/Datex/DatexPoorMansGregorianCalendar.php, line 12
Fallback calendar implementation in case php-intl is not available.

Class

DatexPoorMansGregorianCalendar

Namespace

Drupal\datex\Datex

Code

public function __construct($tz, $lang_code) {
  $lang_code = $lang_code !== 'fa' && $lang_code !== 'en' ? 'en' : $lang_code;
  parent::__construct($tz, 'gregorian', $lang_code);
}