Bonjour,
Je viens de voir que l’heure du log mqtt2d est à l’heure GMT…
Pas gênant mais contrariant
Thierry
Bonjour,
j’ai aussi vu ça dans d’autres log, et ce depuis mon passage en 4.5.
A+
Michel
Bonjour,
Je viens de proposer un PR pour passer les logs au format « local » :
jeedom:beta ← TiTidom-RC:beta
opened 10:18AM - 31 Dec 25 UTC
<!--
Please target the `beta` branch when submitting your pull request, unless … your change **only** applies to Jeedom 4.x.
-->
## Description
<!--
What do you want to achieve with this PR? Why did you write this code? What problem does this PR solve?
Describe your changes in detail and, if relevant, explain which choices you have made and why.
-->
Les logs du démon mqtt2d s'affichaient en heure GMT/UTC au lieu d'utiliser l'heure locale du système Jeedom.
Problème :
Les timestamps dans les logs utilisaient new Date().toISOString() qui retourne systématiquement l'heure en UTC, indépendamment du fuseau horaire configuré dans Jeedom.
Solution :
Remplacement de toISOString() par une fonction de formatage qui utilise les méthodes de Date() respectant automatiquement le fuseau horaire local du système.
Fichier modifié : resources/mqtt2d/jeedom/jeedom.js
### Suggested changelog entry
Passage des logs du démon en heure locale.
### Related issues/external references
Fixes #
## Types of changes
- [X] Bug fix _(non-breaking change which fixes)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Breaking change _(fix or feature that would cause existing functionality to change)_
- [ ] This change is only breaking for integrators, not for external standards or end-users.
- [ ] Documentation improvement
## PR checklist
- [X] I have checked there is no other PR open for the same change.
- [X] I have read the [[La ligne directrice pour contribuer à ce projet / Contribution guidelines for this project](.github/CONTRIBUTING.md)).
- [X] I grant the project the right to include and distribute the code under the GNU.
- [ ] I have added tests to cover my changes.
- [X] I have verified that the code complies with the projects coding standards.
- [ ] [Required for new sniffs] I have added MD documentation for the sniff.
<!--
============================================================================================
Please make sure your pull request passes all continuous integration checks!
PRs which are failing their CI checks will likely be ignored by the maintainers.
PRs using atomic, descriptive commits are hugely appreciated as it will make
reviewing your changes easier for the maintainers.
============================================================================================
-->
Bonne journée,
TiTidom.
3 « J'aime »
Juste pour rebondir dessus, dans mon cas ça venait effectivement des paramètres de localisation de Debian. Je n’y avais pas fait attention, le LXC Proxmox créé via le script de Mips était en UTC. J’ai modifié la configuration et depuis c’est aligné à la bonne heure.