electerious / Ackee

Self-hosted, Node.js based analytics tool for those who care about privacy.
https://ackee.electerious.com
MIT License
4.27k stars 359 forks source link

feat: converting timezone to offset in mongo aggregate queries #374

Open Nesci28 opened 12 months ago

Nesci28 commented 12 months ago

This PR tries to fix the bug report #343. Instead of using the timezone in string when querying mongo, which looked to be what was causing the issue, this convert the string to the actual offset value using date-fns-tz. If the timezone is unknown to date-fns-tz, it returns an offset of +00:00.

vercel[bot] commented 12 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @electerious on Vercel.

@electerious first needs to authorize it.