-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYS] Add timestamp for messages #1677
Conversation
- add timestamp when puglishing - add "GMT" as timezone for timestamp
Thanks for the PR. I think timestamp should be added in the joint pub function (from the main.ino) rather than adding it into each gateway. |
I agree. Since it was already implemented in ZgatewayBT.ino I was under the impression, that it is implemented in some other modules also. That's why I just implemented it for ZgatewayRTL_433.ino. Should I implement this here or create another pull request? |
Up to you, I don't mind either solution |
I moved it now to main.ino into the function "void pub(const char* topicori, JsonObject& data)". There are also to additional functions
I tested this for the following:
|
Thanks |
While great to have the time stamp option for all modules, why has the naming here changed from the definitive Z(ulu Time) to an ambiguous, non-existant, ZGMT naming scheme? What we do get is Zulu time, which is also known as Coordinated Universal Time/Temps Universel Coordonné - abbreviated nonsensically as UTC, so either the previously existing Z or alternatively UTC should be used, but definitely not GMT in any form, as GMT does observe daylight saving time, which for the Coordinated Universal (Zulu) Time we give is incorrect and unwanted for users worldwide. Just to clarify my above comment. |
@DigiH your are right. I was trying to fix an issue I had, that my openHAB used the wrong timezone for this date. Now that you mention it, I'm not sure why this solution worked for me. Even stranger I now reverted the change and my openHAB is now using my timezone. Not sure what happened here. I will revert this change and submit another pull request for this. |
Description:
Checklist: