[haiku-development] Re: Creation time (whatever is show by Tracker) seems to be busted.
- From: Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Mon, 25 May 2009 11:03:32 +0200
On 2009-05-24 at 23:43:00 [+0200], Bruno Albuquerque <bga@xxxxxxxxxxxxx>
wrote:
> On Sun, 24 May 2009 22:40:06, Bruno Albuquerque said:
>
> > I will open a bug for this but I wanted to confirm it first as it is
> > not unlikely that my BFS is messed again. Tracker's "Created" column
> > is
> > showing bogus dates. For instance I just created a file using "touch"
> > in the command line and it is showing the date as:
> >
> > 02 Oct 2020, 00:16
> >
> > While the "Modified" column is showing:
> >
> > 24 May 2009, 22:32
> >
> > Which was the actual time the file was created.
> >
> > Can someone else reproduce this?
Yes, I'm seeing those, too. Actually, I was under the impression that those
were the result of my own local fiddling with BFS - so thanks for bringing
that up now, probably saved me some headaches trying to locate the bug in my
own changes ;-)
> > And while we are at this, where
> > exactly
> > is Tracker getting this date from? Is it ctime?
No - BFS does not store ctime (as of yet, but I'm currently working on that).
Tracker's 'Create Time' is taken from stat.st_crtime.
>
> And I just noticed it is also changing. After closing the window and
> reopening it, the date now shows as
>
> 01 Jan 1970, 00:00 (Unix Epoch?).
>
> I guess this is a Tracker problem. So, is anyone else seeing it?
I'd rather think this might be related to the recent changes to the handling
of struct stat.
cheers,
Oliver
Other related posts: