php filemtime, filectime, fileatime shows different value -


so have retrieved filectime, filemtime , fileatime file. , insert value db. values inserted db different 1 showed in file explorer.

the value inserted db

the value showed in file explorer

i'm not sure how address issue. code use below:

 $lastaccess=mysql_real_escape_string(date('y-m-d h:i:s',fileatime($path)));         $lastmod =mysql_real_escape_string(date('y-m-d h:i:s',filemtime($path)));         $itime =mysql_real_escape_string(date('y-m-d h:i:s',filectime($path))); 

fyi gmt+8 here...we use mamp server (localhost)


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -