Skip to content
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

Project ifnormation: Modification time and creation date #492

Open
Vilax opened this issue Jan 19, 2024 · 4 comments
Open

Project ifnormation: Modification time and creation date #492

Vilax opened this issue Jan 19, 2024 · 4 comments

Comments

@Vilax
Copy link
Contributor

Vilax commented Jan 19, 2024

In the list of the Scipion projects, just below of each project title there are two labels:
*Modified: It should informs about the time since the last modification (It is ok)
*Created: It should be the date when the project was created. Currently, it is the date of the last modification.

An example is shown below

image

@Vilax Vilax changed the title Projection: Modification time and creation date Project ifnormation: Modification time and creation date Jan 19, 2024
@azazellochg
Copy link
Member

Looks like we are simply displaying stat.st_ctime for the folder which is not correct. I think to get the correct creation time which is stored in each project.sqlite we would need to load() each project.. @pconesa ?

@pconesa
Copy link
Contributor

pconesa commented Feb 8, 2024

I'd avoid reading the sqlite for this, actually it was removed to accelerate the loading and also remove one more process accessing the project sqlite.

It seems ctime only works for windows. For linux not.

stat.ST_CTIME
The “ctime” as reported by the operating system. On some systems (like Unix) is the time of the last metadata change, and, on others (like Windows), is the creation time (see platform documentation for details).

What about, removing the creation time since is not a stable value?

@delarosatrevin
Copy link
Member

delarosatrevin commented Feb 8, 2024 via email

@pconesa
Copy link
Contributor

pconesa commented Feb 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants