-
-
Notifications
You must be signed in to change notification settings - Fork 416
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
File.creationDate showing wrong date on macOS Ventura #2657
Comments
It appears that Haxe's Comparing it to what Finder reports, Haxe's creation time is the same as the "Last opened" time. |
I've determined that the same behavior applies to Linux. Apparently, the POSIX standard did not historically require file systems to track a file's creation time at all, and the
Newer Linux file systems store the creation time, but I had difficulty determining if there's an appropriate new syscall in Linux to use to get this information. |
I made a pull request for hxcpp: It's possible it won't be merged. If that's the case, we may need to expose a C++ function from Lime instead. Neko and HashLink seem to use the same inaccurate value from the stat syscall. I tried building both runtimes on macOS, but the builds failed on my machine (I've successfully built HashLink on this machine in the past, but there seems to be an issue with the latest mbedtls library from Homebrew, and I can't see how to downgrade it to whatever the older version was). |
And I created an issue for HashLink: HaxeFoundation/hashlink#619 |
Was there any update on this @joshtynjala , is it yet available to any develop branch (?) |
@rat-moonshine Nothing has been merged into our dependencies, so the behavior remains the same. |
Describe the bug
We noticed that file's
creationDate
wrongly shows as current-date when the actual creation date is much older.Screenshots
Please, consider the following screenshots:
Finder - showing creation date 03/20/2023 (mm/dd/yyyy):
When loaded with
openfl.filesystem.File
- it showscreationDate
is today, 09/01/2023 (mm/dd/yyyy):OpenFL Targets
OpenFL version:
develop
branchBuild target: macOS
Additional context
Haxe: 4.2.5
The text was updated successfully, but these errors were encountered: