opened 01:28AM - 08 Jan 25 UTC
**Describe the bug**
Everything is here: https://community.gladysassistant.com/… t/graphiques-vides-en-mode-1h-et-fonctionnels-en-mode-24h/9257/38
TL;DR: Loading a "one hour" graph from the timezone UTC-5 make them empty.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to the dashboard
2. Add a graph
3. Select 24h mode: there is data, even from the last hour
4. Select 1h mode: no more data
**Expected behavior**
Having working graphs whatever the timezone, in 1h, 24h, etc.
C’est fait ! Bon dépilage de todo !
1 Like
Je veux bien que tu re-créé un post
Merci ! Comme je te disais en privée, ça devrait se dégager d’ici 2 semaines pour moi Ce matin je déposais le bilan & le compte de résultat de Gladys Assistant SAS à l’INPI, les joies de l’administratif
2 Likes
@lmilcent Je pense avoir compris le souci. La date est stockée en UTC dans DuckDB, mais requêtée dans la timezone locale, donc Toronto dans ton cas.
J’ai fais une PR qui corrige le souci, est-ce que tu pourrais tester si ça marche ?
Image Docker (en cours de build, dispo dans 45 minutes) :
gladysassistant/gladys:fix-timezone-issue-device-feature
Build Gladys dev images #221
La PR :
GladysAssistant:master
← GladysAssistant:fix-timezone-issue-device-feature
opened 04:18PM - 20 Jan 25 UTC
### Pull Request check-list
To ensure your Pull Request can be accepted as fa… st as possible, make sure to review and check all of these items:
- [ ] If your changes affects code, did your write the tests?
- [ ] Are tests passing? (`npm test` on both front/server)
- [ ] Is the linter passing? (`npm run eslint` on both front/server)
- [ ] Did you run prettier? (`npm run prettier` on both front/server)
- [ ] If you are adding a new features/services, did you run integration comparator? (`npm run compare-translations` on front)
- [ ] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community ([french forum](https://community.gladysassistant.com/)/[english forum](https://en-community.gladysassistant.com/)) for testing before merging.
- [ ] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
- [ ] If you are adding a new features/services which needs explanation, did you modify the user documentation? See [the GitHub repo](https://github.com/GladysAssistant/v4-website) and the [website](https://gladysassistant.com).
- [ ] Did you add fake requests data for the demo mode (`front/src/config/demo.js`) so that the demo website is working without a backend? (if needed) See [https://demo.gladysassistant.com](https://demo.gladysassistant.com).
NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
### Description of change
Fix https://github.com/GladysAssistant/Gladys/issues/2193
3 Likes
J’ai répondu dans l’issue github. Je confirme, ça a corrigé le problème !
1 Like