UserTimezoneService
class UserTimezoneService (View source)
Methods
__construct(UserPreferenceService $preferenceService, ConfigurationInterface $config)
No description
string
getEffectiveTimezone(int|null $userId)
No description
void
clearCache()
No description
static UserTimezoneService
createDefault(PDO $db, ConfigurationManager $config)
Build a UserTimezoneService wired to the standard DB-backed preference repository. Shortcut for the many call sites that have a PDO connection and config available but no service container.
Details
__construct(UserPreferenceService $preferenceService, ConfigurationInterface $config)
No description
string
getEffectiveTimezone(int|null $userId)
No description
void
clearCache()
No description
static UserTimezoneService
createDefault(PDO $db, ConfigurationManager $config)
Build a UserTimezoneService wired to the standard DB-backed preference repository. Shortcut for the many call sites that have a PDO connection and config available but no service container.