Page MenuHomePhabricator

Top Read Widget Display Issue in Non-US Time Zones
Closed, ResolvedPublic

Assigned To
Authored By
ARamadan-WMF
Jan 16 2024, 12:10 PM
Referenced Files
F103650543: 654170178-57d90419-5311-4a03-a989-c2e72cf9731f.png
Fri, Sep 18, 10:37 PM
F41708431: IMG_2955.JPG
Jan 22 2024, 11:18 PM
F41708017: IMG_2931.JPG
Jan 22 2024, 11:18 PM
F41707744: IMG_2896.png
Jan 22 2024, 6:02 PM
F41707741: IMG_2892.jpeg
Jan 22 2024, 6:02 PM
F41693304: image0 (33).png
Jan 16 2024, 12:10 PM
F41693305: image1 (21).png
Jan 16 2024, 12:10 PM

Description

“Top read” widget only works reliably in US time zones (noted since travelling there).
Australian time zones show no information for most of the day.
Only a problem since iOS 17.
Possibly relates to defining what day it actually is in each time zone.
The issue persists with the most current version of iOS Wikipedia and the latest versions of iOS and iPad OS.
Attached are screenshots of the widget (showing most read as blank) and simultaneously from the actual app (where most read is working properly).
Of note is that I am currently in eastern Australia (UTC+11 hrs). Using the same device when I travelled in USA recently, the widget worked perfectly. Presumably then, it has something to do with the timezone differences causing confusion as to what time period to use for defining “most read”?
A similar thing happens in the Dictionary.com app. The widget displays a different “word of the day” from the actual app in this time zone.
Version: WikipediaApp/7.4.6.2972 (iPadOS 17.2; Tablet)

image1 (21).png (750×1,334 px, 211 KB)

image0 (33).png (360×640 px, 120 KB)

Event Timeline

I also think the top read card is missing in the app Explore feed in this situation.

@Tsevener For me it's just the widget that is not working—the Top read card is always there in the Explore feed. (Screenshots taken 1 minute apart.)

IMG_2892.jpeg (1,179×1,835 px, 676 KB)
IMG_2896.png (429×1,828 px, 432 KB)

@gymate Ah ok good to know, perhaps I wasn't testing correctly. It looks like your "top read" card is under the "Yesterday" section heading - do you see any top read cards under the "Today" section? I do in the U.S.

@Tsevener Oh, I see! I think I get the issue now.

When the widget works, the card appears in both sections (image only visible on click):

IMG_2931.JPG (1,179×16,232 px, 2 MB)

But as soon as midnight passes and the widget doesn't work, it only appears in the Yesterday section indeed (BTW the Today header is also missing):

IMG_2955.JPG (1,179×13,271 px, 1 MB)

It really looks like it's a time zone issue. (I'm in Hungary which is UTC+1.)

JTannerWMF moved this task from Needs Triage to Engineering Backlog on the Wikipedia-iOS-App board.
JTannerWMF subscribed.

We will look into this when we have 3 engineers again

EAlbizzati-WMF renamed this task from Top Read Widget Display Issue in Non-US Time Zones to Top Read Widget Display Issue in Non-US Time Zones.Tue, Sep 15, 7:59 PM
EAlbizzati-WMF claimed this task.

Related to T339127

  1. Run the app once so the widget cache is populated, and add the Top Read widget (any size) to the home screen.
  2. Simulate a feed response without most-read data: set the device/simulator timezone to Australia/Sydney and the time to shortly after local midnight (or temporarily change if var topRead = featuredContent.topRead, self.topReadIsCurrent(topRead) to , false in WidgetController), then reload the widget (remove/re-add or background refresh).
  3. Before this change: blank placeholder rows. After: the previous day's top read renders.
  4. Simulate a network failure (Airplane Mode) and reload — cached content renders instead of placeholders.

Should be available on tomorrow's build. 2026.09.16

Available in: TestFlight Wikipedia 2026.09.16 (6176)

ABorbaWMF subscribed.

Moving to blocked after a conversation with @EAlbizzati-WMF regarding an issue with POD affecting all the widgets. T438412

@ABorbaWMF I merged the PR for https://phabricator.wikimedia.org/T438412. so this should be good to test again.
But we'll need to wait for Monday's version 2026.09.21.

I added a new menu on developer settings to help with widget testing:

  1. Add the Featured Article, Top Read and Picture of the Day widgets to the home screen. All three show content for today, and Picture of the Day shows a caption even when the feed has no description (English on 2026-09-17).
  2. O pen Profile > Settings > Developer Settings. The "Widgets" section lists the cached sections and "Last widget fetch" lists the last result. Tap "Clear cache and reload widgets": the widgets refresh from the network.
  3. Turn on Airplane Mode and force a widget refresh (change the app language and back, or wait for the next timeline). The widgets keep showing the previous content instead of sample content.

654170178-57d90419-5311-4a03-a989-c2e72cf9731f.png (1,179×2,556 px, 459 KB)

2026.09.19 onwards will have this change and is ready for QA. This is a visible change and worth prioritising earlier QA

Build: 6180-beta-2026-09-22
Tested on:
iPhone 16, iOS 26.6
iPad Air, iPadOS 26.6
iPhone SE, iOS 26.5.2

This is mostly working for me. The only exception is in this test when choosing French or Portuguese (so far) as the primary language:
Turn on Airplane Mode and force a widget refresh (change the app language and back, or wait for the next timeline). The widgets keep showing the previous content instead of sample content.