Skip to content
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

Fix longstanding milliseconds bug #41

Merged
merged 1 commit into from Dec 29, 2022
Merged

Conversation

b100dian
Copy link
Collaborator

@b100dian b100dian commented Dec 28, 2022

The timestamp seconds to milliseconds conversion was adding the part after the . (which is a 6 figure number) and which was polluting the seconds part by adding as much as 16 minutes (max 999 seconds) to the timestamp.

Since Qt is not having a microsecond datetime, for now I just use the first 3 figures after the dot, and drop the rest.

(Previous text)
(not tested yet on master, only on feature/storage branch, I have a dbus build problem but pretty sure this is 5+years bug in that code)

I ended up running manually into src qdbusxml2cpp -c SailslackAdaptor -a sailslack_adaptor.h:sailslack_adaptor.cpp harbour.sailslack.xml.

Tested on master now too

Copy link
Owner

@danvratil danvratil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Thanks

@danvratil danvratil merged commit 917031c into danvratil:master Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants