Repository: mdn/kuma

Issue:
Drop 'timezone' from whoami
**Summary**
In [`api/v1/whoami`](https://github.com/mdn/kuma/blob/d29cd36431459030afc9145b906dcfad88b398ac/kuma/api/v1/views.py#L216) we're including a `timezone` value. 

No code appears to use it for anything. It's mention in `user-provider.jsx` but only to build up the `userData` context but nothing beyond that that actually uses it. 


**Audience**
Developers


**Rationale**
It's wasting space. 

**Workaround**
Our "v1" API isn't a public API because it's based on browser cookies. So we don't have to worry about breaking any third-party apps that depend on this. 
Not really a workaround.

**Proposal**
Delete it and clean up around it. 


**Additional context**
Let's block this on https://github.com/mdn/kuma/issues/6742



Discussion:
Here's how I can be confident we don't use it for anything:
```
▶ rgj timezone
../.git/modules/locale/commondir: No such file or directory (os error 2)
../.git/modules/kumascript/commondir: No such file or directory (os error 2)
kuma/javascript/src/user-provider.test.js
73:                        timezone: null,

kuma/javascript/src/user-provider.jsx
14:    timezone: ?string,
31:    timezone: null,
67:                    timezone: data.timezone,

kuma/static/js/libs/jquery-ui-1.10.3.custom/development-bundle/external/globalize.js
1213:			// adjust timezone to utc before applying local offset.

```

Resolving patch:
diff --git a/kuma/api/v1/views.py b/kuma/api/v1/views.py
--- a/kuma/api/v1/views.py
+++ b/kuma/api/v1/views.py
@@ -229,7 +229,6 @@ def whoami(request):
     if user.is_authenticated:
         data = {
             "username": user.username,
-            "timezone": user.timezone,
             "is_authenticated": True,
             "is_staff": user.is_staff,
             "is_superuser": user.is_superuser,
@@ -244,7 +243,6 @@ def whoami(request):
     else:
         data = {
             "username": None,
-            "timezone": settings.TIME_ZONE,
             "is_authenticated": False,
             "is_staff": False,
             "is_superuser": False,


Test patch:
diff --git a/kuma/api/v1/tests/test_views.py b/kuma/api/v1/tests/test_views.py
--- a/kuma/api/v1/tests/test_views.py
+++ b/kuma/api/v1/tests/test_views.py
@@ -194,8 +194,7 @@ def test_whoami_disallowed_methods(client, http_method):
 
 
 @pytest.mark.django_db
-@pytest.mark.parametrize("timezone", ("US/Eastern", "US/Pacific"))
-def test_whoami_anonymous(client, settings, timezone):
+def test_whoami_anonymous(client, settings):
     """Test response for anonymous users."""
     # Create some fake waffle objects
     Flag.objects.create(name="section_edit", authenticated=True)
@@ -206,14 +205,12 @@ def test_whoami_anonymous(client, settings, timezone):
     Sample.objects.create(name="sample_never", percent=0)
     Sample.objects.create(name="sample_always", percent=100)
 
-    settings.TIME_ZONE = timezone
     url = reverse("api.v1.whoami")
     response = client.get(url)
     assert response.status_code == 200
     assert response["content-type"] == "application/json"
     assert response.json() == {
         "username": None,
-        "timezone": timezone,
         "is_authenticated": False,
         "is_staff": False,
         "is_superuser": False,
@@ -239,8 +236,8 @@ def test_whoami_anonymous(client, settings, timezone):
 
 @pytest.mark.django_db
 @pytest.mark.parametrize(
-    "timezone,is_staff,is_superuser,is_beta_tester",
-    [("US/Eastern", False, False, False), ("US/Pacific", True, True, True)],
+    "is_staff,is_superuser,is_beta_tester",
+    [(False, False, False), (True, True, True)],
     ids=("muggle", "wizard"),
 )
 def test_whoami(
@@ -248,7 +245,6 @@ def test_whoami(
     wiki_user,
     wiki_user_github_account,
     beta_testers_group,
-    timezone,
     is_staff,
     is_superuser,
     is_beta_tester,
@@ -263,7 +259,6 @@ def test_whoami(
     Sample.objects.create(name="sample_never", percent=0)
     Sample.objects.create(name="sample_always", percent=100)
 
-    wiki_user.timezone = timezone
     wiki_user.is_staff = is_staff
     wiki_user.is_superuser = is_superuser
     wiki_user.is_staff = is_staff
@@ -276,7 +271,6 @@ def test_whoami(
     assert response["content-type"] == "application/json"
     assert response.json() == {
         "username": wiki_user.username,
-        "timezone": timezone,
         "is_authenticated": True,
         "is_staff": is_staff,
         "is_superuser": is_superuser,
diff --git a/kuma/javascript/src/user-provider.test.js b/kuma/javascript/src/user-provider.test.js
--- a/kuma/javascript/src/user-provider.test.js
+++ b/kuma/javascript/src/user-provider.test.js
@@ -71,7 +71,6 @@ describe('UserProvider', () => {
                         is_super_user: false,
                         is_subscriber: false,
                         subscriber_number: null,
-                        timezone: null,
                         avatar_url: null,
                         waffle: waffleFlags,
                         email: 'testuser@mail.com',