Skip to content

Search Console date presets roll over during the Pacific day #570

Open

Description

@michaelgiraldo

TL;DR

Search Console date presets change at UTC midnight, during the same Pacific calendar day. Make the rollover convention clear and consistent with the dates described by the tool.

What is happening?

With last_7_days, the unchanged upstream resolveDateRange helper returns:

2026-11-15T23:59:00Z -> Nov 6–12
2026-11-16T00:01:00Z -> Nov 7–13

Those instants are 3:59 PM and 4:01 PM Pacific on November 15. A same-day comparison can therefore request different sets of dates after the preset rolls over.

What should happen?

Prefer advancing presets at Pacific midnight while preserving the existing data lag. If UTC rollover is intentional, document it in the preset description.

Extra context

Google defines request dates in Pacific time, but does not prescribe how applications calculate relative presets. Both examples are valid date ranges under that contract. This is a date-preset consistency issue, not an API compliance failure.

Reproduced offline against upstream 2df84ff9, src/server/features/gsc/searchAnalytics.ts; no Google requests were made. Separate from #454: both ranges contain seven days.

Activity

  1. changed the title [-]Search Console preset date ranges advance before Pacific midnight[/-] [+]Search Console date presets roll over during the Pacific day[/+] on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions