<commit_before>Custom timezone resolver
========================

For add custom user timezone resolver you need create service and implement `ResolverInterface`. Example service for get timezone
for authorized user:

```php
namespace Acme\Bundle\DemoBundle\Date\TimeZone\Resolver;

use Acme\Bundle\DemoBundle\Entity\User;
use GpsLab\Bundle\DateBundle\TimeZone\Resolver\ResolverInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;

class UserResolver implements ResolverInterface
{
    protected $storage;

    public function __construct(TokenStorageInterface $storage)
    {
        $this->storage = $storage;
    }

    public function getUserTimeZone()
    {
        //
        if (
            ($token = $this->storage->getToken()) &&
            ($user = $token->getUser()) &&<commit_msg>correct comment<commit_after>Custom timezone resolver
========================

For add custom user timezone resolver you need create service and implement `ResolverInterface`. Example service for get timezone
for authorized user:

```php
namespace Acme\Bundle\DemoBundle\Date\TimeZone\Resolver;

use Acme\Bundle\DemoBundle\Entity\User;
use GpsLab\Bundle\DateBundle\TimeZone\Resolver\ResolverInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;

class UserResolver implements ResolverInterface
{
    protected $storage;

    public function __construct(TokenStorageInterface $storage)
    {
        $this->storage = $storage;
    }

    public function getUserTimeZone()
    {
        // get timezone from user entity
        if (
            ($token = $this->storage->getToken()) &&
            ($user = $token->getUser()) &&
{'fraction_non_alphanumeric': 0.12032710280373832, 'fraction_numerical': 0.0, 'mean_word_length': 3.936599423631124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4859994', 'n_tokens_mistral': 448, 'n_tokens_neox': 433, 'n_words': 112}