PHPackages                             yii2mod/yii2-timezone - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. yii2mod/yii2-timezone

ActiveYii2-extension

yii2mod/yii2-timezone
=====================

Timezone helper

1.0.3(10y ago)1410.7k—0%3MITPHP

Since Jun 17Pushed 9y ago3 watchersCompare

[ Source](https://github.com/yii2mod/yii2-timezone)[ Packagist](https://packagist.org/packages/yii2mod/yii2-timezone)[ RSS](/packages/yii2mod-yii2-timezone/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Yii 2 Timezone
==============

[](#yii-2-timezone)

Timezone component for Yii 2

[![Latest Stable Version](https://camo.githubusercontent.com/19cbdb11067cc416b55102b96ad3dd3a6a0204484fc614a40c26a7fa9426e414/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d74696d657a6f6e652f762f737461626c65)](https://packagist.org/packages/yii2mod/yii2-timezone) [![Total Downloads](https://camo.githubusercontent.com/21b5a5ac05bcf10a6c254f2d77a884e359278eeaf7c9ea6a92670816a3025e3f/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d74696d657a6f6e652f646f776e6c6f616473)](https://packagist.org/packages/yii2mod/yii2-timezone) [![License](https://camo.githubusercontent.com/f1f3e0bdf5ea7ee2732c5399084ecea3e49a6a59b7c58309a4caac38710abcfa/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d74696d657a6f6e652f6c6963656e7365)](https://packagist.org/packages/yii2mod/yii2-timezone)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yii2mod/yii2-timezone "*"

```

or add

```
"yii2mod/yii2-timezone": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

> Currently firefox and edge browsers are not supported.

Once the extension is installed, simply add component to your main config file:

```
    'bootstrap' => [
        'timezone'
    ]
    .....
    'components' => [
        'timezone' => [
            'class' => 'yii2mod\timezone\Timezone',
            'actionRoute' => '/site/timezone' //optional param - full path to page must be specified
        ],
    ]
```

Then add new action to any controller (SiteController by default)

```
public function actions()
    {
        return [
            'timezone' => [
                'class' => 'yii2mod\timezone\TimezoneAction',
            ],
        ];
    }
```

After configuration you can use ` Yii::$app->timezone->name` to get current user's timezone.

###  Health Score

36

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~85 days

Total

4

Last Release

3673d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a53a15e1548ce60ee92591e71492a39eaaecfc88eaa1a9d7f353d5c910381de?d=identicon)[disem](/maintainers/disem)

---

Top Contributors

[![dmitry-semenov](https://avatars.githubusercontent.com/u/17027799?v=4)](https://github.com/dmitry-semenov "dmitry-semenov (3 commits)")

---

Tags

yii2yii2-extensionyii2-timezoneyii2-timezone-detectoryii2component

### Embed Badge

![Health badge](/badges/yii2mod-yii2-timezone/health.svg)

```
[![Health](https://phpackages.com/badges/yii2mod-yii2-timezone/health.svg)](https://phpackages.com/packages/yii2mod-yii2-timezone)
```

###  Alternatives

[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

84127.4k2](/packages/nterms-yii2-mailqueue)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1142.8k1](/packages/skeeks-yii2-google-api)[umanskyi31/opengraph

Created a new component for Yii2. The Open Graph component for your website

119.7k](/packages/umanskyi31-opengraph)[dlds/yii2-mlm

Yii2 Multi Level Marketing component

183.8k](/packages/dlds-yii2-mlm)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
