benvinegar / counterscale

Scalable web analytics you run yourself on Cloudflare
https://counterscale.dev
MIT License
1.52k stars 66 forks source link

Chart shows both 23:00 and 00:00 timestamps for dates occuring after DST-boundary change #108

Closed benvinegar closed 2 weeks ago

benvinegar commented 2 weeks ago

Since daylight savings came into effect here, I notice that this chart is showing this saw-tooth graph, where each day has 2 data points. The proper data point is at 00:00, and the zero data point is at 23:00. This has repeated for each day.

image

benvinegar commented 2 weeks ago

I notice this is occurring only in my production instance of Counterscale (counterscale.dev), and not locally.

I'm guessing these are more TZ-related issues like #107 that are caused by the server guessing the timezone (from Cloudflare headers).

benvinegar commented 2 weeks ago

Before fix (notice the sawtooth pattern):

image

After fix:

image