Skip to content

bug(site): DAUs chart fails to load with fractional-hour tz offset #10562

Closed
@johnstcn

Description

@johnstcn

Problem: if your timezone offset is a non-whole number of hours, the Deployment>DAUs chart will fail to load.

Steps to reproduce:

  • Set your browser TZ to India/Mumbai or some other fractional-offset TZ
  • Load Depoyment>DAUs
  • Observe sadness

image

Bug is here: https://github.com/coder/coder/blob/main/site/src/api/api.ts#L937

This ends up sending a request /v2/insights/daus?tz_offset=5.5 which is not accepted by the BE.

IIRC the usage metrics are bucketed by hour, so we probably need to round down to the closest hour.

Metadata

Metadata

Assignees

Labels

siteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions