Code Blog

Displaying 1-1 of 1 result.
2016/11/23 MacOSX

On Mac OS X / Unix start a terminal window and run the following commands:

Modified timedate

touch -mt YYYYMMDDhhmm filepath
touch -mt 201611231200 *

The example above will update all files in the current folder with modified datetime of 2016/11/23 12.00AM. This helped me solve some file upload sorting order problem in the past.

Create and modified timedate

Dropping the "-m" flag will update both created and modified datetime

touch -t 201611231200 *