Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function initialize() |
||
38 | { |
||
39 | $this->addData('user', get_user_locale()); |
||
40 | $this->addData('site', get_locale()); |
||
41 | $this->addData('siteTimezone', [ |
||
42 | 'city' => EEH_DTT_Helper::get_timezone_string_for_display(), |
||
43 | 'name' => get_option('timezone_string'), |
||
44 | 'offset' => EEH_DTT_Helper::get_site_timezone_gmt_offset(), |
||
45 | ]); |
||
46 | $this->setInitialized(true); |
||
47 | } |
||
48 | } |
||
49 |