class UserTimezoneService (View source)

Resolves the timezone to display for a user: their preference, then misc.timezone, then UTC.

Methods

__construct(UserPreferenceService $preferenceService, ConfigurationInterface $config)

No description

string
getEffectiveTimezone(int|null $userId)

No description

void
clearCache()

No description

Details

__construct(UserPreferenceService $preferenceService, ConfigurationInterface $config)

No description

Parameters

UserPreferenceService $preferenceService
ConfigurationInterface $config

string getEffectiveTimezone(int|null $userId)

No description

Parameters

int|null $userId

Return Value

string

void clearCache()

No description

Return Value

void