Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Creator 4.12.4 - Strange issues when clock set back



  • I'm using Qt creator 4.12.4 on Windows 10 to develop my application and to do some testing, I need to setback the system clock to be a month earlier or specifically 1st January 2021. Whenever I do this and try to debug in Qt creator I encounter some strange problems:

    The state of every source file becomes "cached" in that any change I make to the source files while the clock is setback doesn't seem to be acknowledged e.g making new changes and building the project always shows the "old code". I confirmed this by deleting the contents of a file and building it to find that it still runs even though code is missing (The compiler output shows it building and linking the empty file)

    Running qmake and rebuilding/cleaning the project doesn't do anything to remedy this while the clock is setback. The only thing that seems to work is deleting the entire contents of the build output folder but I don't want to have to do this everytime while the clock is setback. Why is this happening and is it a bug in Qt-Creator ?

    Thanks



  • @Nubcake
    It will be because some existing files are "newer" than those you now create "today". Makes, and checking debug builds against source code, are timestamp based. Not a Creator issue. Make sure you start off with all intermediate files deleted. But yes, if you keep setting the clock back you will encounter this sort of issue.



  • @Nubcake
    It will be because some existing files are "newer" than those you now create "today". Makes, and checking debug builds against source code, are timestamp based. Not a Creator issue. Make sure you start off with all intermediate files deleted. But yes, if you keep setting the clock back you will encounter this sort of issue.


Log in to reply