Skip to content

Stats Traffic By Week chart uses incorrect date range #20334

@guarani

Description

@guarani

Expected behavior

The Traffic tab's "By week" view should use the same date range in the date picker and on the chart.

Actual behavior

The Traffic tab's "By week" view uses

  • 26 Feb - 3 Mar in the date picker (expected)
  • Feb 27 to Mar 4 on the chart

Screenshots

CleanShot 2024-02-28 at 23 00 09@2x

Steps to reproduce the behavior

  1. Open the Stats Traffic tab (currently behind a feature flag)
  2. Tap "By day" and change it to "By week"
  3. Notice the date range of the date picker is different to the one shown on the chart

To reproduce, it may be necessary to have the device's time zone and the site's time zone different so that each is on a different day. Update: I ruled this out after testing once my day and the site's day matched.

Tested on Samsung Galaxy S10, Android 12, JPAndroid trunk 97b1c1b

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions