I'm trying to capture the file date via javascript and send it to PHP.
Reason?
I want the date of the last file change.
$('#last_modified').val(arquivo[0].lastModified);
Variable file is:
<input type="file" name="teste" onchange="pegaArquivo(this.files)">
What returns me "1423493594000" to date: Mon Feb 09 2015 12:53:14 GMT -0200 (BRST)
However, when PHP reads this date it always returns the same: 12/31/1969
In php I do:
echo date ("d/m/Y", filectime($_POST['last_modified']));
Could you help me?