Page MenuHomePhabricator

Incorrect month header is used for users with timezone behind UTC
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Set browser timezone to one behind UTC
  • Warn a user when UTC time is already a new month, and local time is the previous month

What happens?:
UV creates/uses the previous month header.

What should have happened instead?:
UV creates/uses the month header corresponding to the current UTC time.

Software version (skip for WMF-hosted wikis like Wikipedia):
UV 0.1.5

Other information (browser name/version, screenshots, etc.):

Wikipedia talk:Ultraviolet#Ultraviolet bug with month

For users whose local time zone offset is not equivalent to UTC, inconsistencies may occur when sending a standardized user notice or warning template. Some of the edits that I made using Ultraviolet include Special:Diff/1182898516 and Special:Diff/1182898922, which added a level 2 header for the month prior rather than the current month (in UTC) since I am in a time zone behind UTC. Eyesnore talk💬 02:10, 1 November 2023 (UTC)

Details

TitleReferenceAuthorSource BranchDest Branch
fix: use UTC time for talk page month headersrepos/10nm/ultraviolet!8sportzwork/sportz/T350223dev
Customize query in GitLab

Event Timeline

Sportzpikachu triaged this task as Low priority.
Sportzpikachu moved this task from Needs Triaging to Backlog on the Ultraviolet board.

Wikipedia talk:Ultraviolet#Talk page section headings using local time

Hi, it appears that when creating a new section for a user warning, the tool uses local time, possibly leading to inconsistencies (and seemingly not seeing earlier warnings), like at User talk:2600:1700:1150:5BB0:B99B:E02E:3690:CC90. Using UTC for detecting warnings and creating section headers should solve the issue – this file just needs to use date.getUTCMonth() and date.getUTCFullYear() instead of the local time equivalents. Tollens (talk) 01:39, 1 March 2024 (UTC)