Comments (5)
another distro
Which one exactly would be good to know? And I assume you're also referring to the mingw-w64 package provided by that distro?
Can you provide a small demo project to reproduce?
I assume you use the regular, dynamic version (mingw-w64-qt5-base
package)?
BTW: If you want to add a patch to this: https://github.com/Martchus/PKGBUILDs#contributing-to-patches
from pkgbuilds.
Sorry for the delay, I had a very busy weekend away from the PC.
Which one exactly would be good to know? And I assume you're also referring to the mingw-w64 package provided by that distro?
I now use Ubuntu with MXE, which also uses mingw-w64.
Can you provide a small demo project to reproduce?
I threw together a simple test qt-app:
time_test.zip
I assume you use the regular, dynamic version (mingw-w64-qt5-base package)?
Yes, you assume correctly.
from pkgbuilds.
In my case this issue is different. At least when testing with Wine:
In the background is the correct value (native Linux build) and in the foreground the Windows version started with Wine. So the time and Date.getHours()
are even correct, but in the timezone the daylight saving is also missing.
Hard to tell what's causing this. I can't find any patches in the MXE which would fix this. I also doubt my own patches introduce any bugs regarding this. Yes, there are many patches, but most of them are about finding dependencies and other build system issues.
And in my case it is also just a QML issue. QDateTime works correctly. Eg.:
cout << "Qt: " << QDateTime::currentDateTime().toString(Qt::RFC2822Date).toLocal8Bit().data() << endl;
cout << "daylight saving: " << QDateTime::currentDateTime().isDaylightTime() << endl;
prints:
Qt: 07 May 2018 22:39:53 +0200
daylight saving: 1
from pkgbuilds.
That is weird with only the toString() being off. Though QDateTime also worked fine for me. So yeah, it is only a QML issue.
Interesting enough though, I once tried to supply the date through an interface into QML as a QDateTime and even then it had the same problem. So I would suspect the error being in the javascript engine and the Date type.
I don't know if I have some time to dig deeper into this, but if I do I will let you know what I find.
Thanks for your help!
from pkgbuilds.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from pkgbuilds.
Related Issues (20)
- When I try to install mingw-w64-qt5-base, it gets stuck in a dependency loop. HOT 9
- syncthingtray installation fails due to missing package HOT 10
- mingw-w64-rapidjson and gtest problem HOT 2
- Error building qt5 HOT 4
- No /usr/x86_64-w64-mingw32/lib/cmake/Qt6LinguistTools in package mingw-w64-qt6-tools HOT 3
- [syncthingtray] yay -Yc keep deleting syncthing HOT 4
- strange link in mingw-w64-qt6-imageformats and mingw-w64-qt6-imageformats HOT 2
- Could you add mingw-w64-gdb to [ownstuff] HOT 3
- subtitlecomposer: Error validating checksum & video fix HOT 6
- dbus-soundrecorder failing to build HOT 2
- syncthingtray test failure HOT 12
- Please add proper provides to syncthingtray dependencies HOT 4
- Cannot build cmake-format HOT 3
- extra-cmake-modules PKGBUILD file missing sha256 sums HOT 1
- static-compat-libx11 contains dynamic libX11-xcb lib HOT 6
- Qt6 Multimedia in Binary Repo HOT 5
- cmake-format: specify the purpose of every optional dependency HOT 2
- Qt5 plugins do not populate CMake location properties HOT 5
- mingw-w64-gnutls: Compile errors. HOT 4
- Add mingw-w64-qt6-positioning HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkgbuilds.