Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,331
    • Merge requests 1,331
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #340795
Closed
Open
Issue created Sep 14, 2021 by Kushal Pandya@kushalpandyaMaintainer

Don't set default timezone to UTC for users

Summary

With !66493 (merged), we started showing time on user's profile based on user-selected timezone;

image

However, until users set a correct timezone for themselves via Profile Edit page, we default the timezone to GitLab Instance timezone (see app/models/user_preference.rb#L26), so this would lead to other users seeing an incorrect time for users who have not manually set any timezone yet.

Proposal

We have two alternatives to this problem;

  • Short-term solution: Set default timezone to an empty string, and hide the time on profile page as long as the user has not set any time.
  • Long-term solution: Follow the previous solution of setting default timezone to an empty string, and on the user profile page, show a link saying Set default timezone pointing to edit profile page for current user who has no timezone set.
Assignee
Assign to
Time tracking