-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
AutoDJ Timestamp displays GMT #6610
Comments
Commented by: l29634 I think I fixed the bug, at least to me, when I add a new item to the Library, it shows the correct time instead of GMT. |
Commented by: daschuer Hi João, Thank you for your patch and adopting this bug! Did you test your patch? For fixing this bug, you should read:
All other timestamps generated with sqlites CURRENT_TIMESTAMP will suffer the same bug. Kind regards, Daniel |
Commented by: l29634 Hi Daniel, Yes, I tested it and it seemed to work :/ I live in Portugal and GMT is -1:00h, after adding library items, instead of -1:00 I had the correct time displayed. Did you add a new item do your library or did you check the old items? Because when adding new items it works but it doesn't fix the old ones, is it supposed to? Best regards, João |
Commented by: rryan Hi all, Thanks for working on this João! The timestamps in the database are Cheers,
|
Commented by: daschuer Hi João, maybe your patch is not including all your changes?
As RJ pointed out this is not the right place to to fix the bug, because we want to have UTC inside the track info object. So i have to revert my idea of "Utc" suffix in favor of a "Loc" suffix for times that are for display purpose. Kin regards, Daniel |
Commented by: l29634 Hi all, Ok, I understand the difference and will attempt a fix, thanks for the tips guys :) Best regards, João |
Commented by: l29634 Hi all, I'm currently making changes on trackdao.cpp, basesqltablemodel.cpp and basetrackcache.cpp, so I'm no longer inserting the dates in localtime as I was. The problem is, I already changed all data variables to "toLocalTime()", still I get the times in GMT, so my doubt is, if the "toLocalTime()" function is getting GMT for some reason or I'm doing something wrong (which is very likely). Best regards, João |
Commented by: rryan Just some debugging hints:
e.g. qt qdatetime.cpp gitorious will get you to a web hosted version of the source for QDateTime |
Commented by: l29634 Thanks RJ, will do that (deleted my old post, misread the name, sorry about that :/ ). |
Commented by: l29634 Ok after some google research, (thanks again for the tips) I found out that since DateTimes are stored in GMT, I had to implicitly assign the QDateTime(Display porposes only) as UTC and convert it after that. I'm submitting the fix, I've done some small tests and they went OK. Best regards, João |
Commented by: rryan I can confirm the patch works. Thanks João -- added to Mixxx 1.11.0 since it's very low risk. Also -- for future contributions, please set your editor to use tabs, not spaces (and 4-spaces for an indent). :) |
Commented by: l29634
|
Issue closed with status Fix Released. |
Reported by: david-early
Date: 2012-08-14T05:06:55Z
Status: Fix Released
Importance: Wishlist
Launchpad Issue: lp1036492
Tags: autodj, easy, weekend
Attachments: timestampAsLocal.patch, timeStampAsLocal.patch
Whether this is a bug or an "enhancement request" is somewhat dependent on your view.
Running Mixxx 1.11.0-beta1 on Ubuntu 10.10 (Maverick), Intel core i7, etc (don't think this is really a coding error...more information can be provided if no one can reproduce this)
The time stamp is correct (I checked the database and the timestamp shown in the AutoDJ view is the same as the one in the database), but it would be helpful if this were displayed in local time rather than GMT.
How exactly I would use the timestamp remains to be seen, just figured it would be more useful in local time.
The text was updated successfully, but these errors were encountered: