Page 1 of 1

Wrong date of 'exe' generated in MacOS with PB573

Posted: Sun Dec 06, 2020 10:24 am
by manpro
Hello.

First at all, excuse me for my bad English :)

I'm rookie with PureBasic (and in this forum :) and it's possible that my doubt was commented in other thread but I can't find it...

My doubt is: I'm using PB 5.73 with MacOS and, when I generate a new .exe, the date and time attributes of generate file are correct, but when I update the file with new compilations, the attribute time of file is updated with a wrong value. I have a .pb updated at 9:53h and the .exe was generated at same time, but .exe it shows 8:48h

I tested this in WinXP and the .exe time is correct, so this can be a problem with MacOS version (I didn't this test in Linux)

Someone more has detected this issue?

Kind regards and thanks a lot in advance!

Re: Wrong date of 'exe' generated in MacOS with PB573

Posted: Sun Dec 06, 2020 11:52 am
by mk-soft
Wellcome :wink:

I know that ;)

That's because an app under MacOS is a folder and it is not created anew.
If you open the folder (show package contents) and look in the folder /Contents/MacOS, the application is up to date.

Solution: Delete the app first.

No Bug!

Date of Program:

Code: Select all

prg.s = ProgramFilename()
date = GetFileDate(prg, #PB_Date_Modified)
Debug FormatDate("%YYYY.%MM.%DD-%HH:%II:%SS", date)

Re: Wrong date of 'exe' generated in MacOS with PB573

Posted: Sun Dec 06, 2020 8:15 pm
by manpro
Thank you very much for the welcome and the quick response.

Of course you are right, I forgot that an .app file is, as you say, a directory.

Thanks a lot!