mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-21 06:37:42 +01:00
changed stat member to st_ctime for created time
(Sergey, add #ifdef for your platform if you want to have st_birthtime)
This commit is contained in:
parent
54edf45085
commit
516aaa1b9f
@ -205,7 +205,7 @@ Timestamp FileImpl::createdImpl() const
|
||||
|
||||
struct stat st;
|
||||
if (stat(_path.c_str(), &st) == 0)
|
||||
return Timestamp::fromEpochTime(st.st_mtime);
|
||||
return Timestamp::fromEpochTime(st.st_ctime);
|
||||
else
|
||||
handleLastErrorImpl(_path);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user