#15243Filetime on Windows displays creation and not last modified date
Description
filectime on Windows displays time when file was created and NOT last modified. So change that to filemtime to get the appropriate value
see http://de3.php.net/manual/en/function.filectime.php
diff -u -r1.1 -r1.2
—- t3lib/class.t3lib_basicfilefunc.php 29 Nov 2005 04:42:54 -0000 1.1
+++ t3lib/class.t3lib_basicfilefunc.php 29 Nov 2005 04:48:35 -0000 1.2
@@ -27,7 +27,7
/**
* Contains class with basic file management functions
*
- * $Id: class.t3lib_basicfilefunc.php,v 1.1 2005/11/29 04:42:54 pruss Exp $
+ * $Id: class.t3lib_basicfilefunc.php,v 1.2 2005/11/29 04:48:35 pruss Exp $
* Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
*
* author Kasper Skaarhoj <kasperYYYYtypo3.com>
@@ 150,7 150,14 $info[‘tstamp’] =
function getTotalFileInfo($wholePath) {
$theuser = getmyuid();
$info = t3lib_div::split_fileref($wholePath);filectime($wholePath);filectime($wholePath);
+ //PRS+ 29.11.2005
+ /*
+ * On Windows filectime gives the time, when the file was created
+ * To get time when file was last modified filemtime is the appropriate function
+ */
+# $info['tstamp'] =
$info[‘tstamp’] = filemtime($wholePath);filesize($wholePath);
+ //PRS- 29.11.2005
$info['size'] =
$info[‘type’] = filetype($wholePath);fileowner($wholePath);
$info['owner'] =
(issue imported from #M1946)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.