Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.10

Request #11258 Custom date/time in files added on-the-fly
Submitted: 2007-06-09 12:10 UTC
From: dot Assigned:
Status: Open Package: Archive_Tar (version 1.3.2)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2007-06-09 12:10 UTC] dot (Adam Pilorz)
Description: ------------ In some particular situations it is useful, if you can specify the modification date/time yourself. When taring existing files you can change those files' dates, but while creating files on-the-fly they use current date/time (in 1.3.1 they were created with 0 timestamp). My proposition is to add this functionality to next version of Archive_Tar package. I have created a patch adding this feature to Tar.php file. For example when you keep your files in a database, or modify the files from disk before sending them to user, and want to send tar package of several files at once, you might want to tar them using original modification date/time. Included diff file is a difference between original Archive_Tar 1.3.2 and version modified by me including this feature. It is fully backward-compatible, as added parameter $p_datetime is set to false by default and while false is provided it is interpreted the same way as original Tar.php.

Comments