diff --git a/src/fast_file_encryption/encryptor.py b/src/fast_file_encryption/encryptor.py index 1a21cc1..08c656e 100644 --- a/src/fast_file_encryption/encryptor.py +++ b/src/fast_file_encryption/encryptor.py @@ -364,7 +364,7 @@ def _add_source_metadata(source: Path, meta: Dict[str, Any]) -> Dict[str, Any]: if 'file_size' not in meta: meta['file_size'] = source.stat().st_size if 'created' not in meta: - meta['created'] = datetime.utcfromtimestamp(source.stat().st_birthtime).isoformat() + meta['created'] = datetime.utcfromtimestamp(source.stat().st_ctime).isoformat() if 'modified' not in meta: meta['modified'] = datetime.utcfromtimestamp(source.stat().st_mtime).isoformat() return meta