prokli Active Member Licensed User Longtime User Jun 12, 2012 #1 Hello everybody! I noticed that copying a file from PC to my android tablet (e.g. via es file explorer) changes the files "last-modified"-attribute. Example: on PC the file keeps the last modified date of "02.02.2012". After copying the file to my device the date changes to the current date (= 12.06.2012). This happens also when I use the b4a FTP object. It seems that this is a bug in Android (on my tab I use ICS 4.0.3) . This problem came up when I tried to compare the timestamp date as it is provided by the FTP object with the date I get when calling LastModified function. Am I right??
Hello everybody! I noticed that copying a file from PC to my android tablet (e.g. via es file explorer) changes the files "last-modified"-attribute. Example: on PC the file keeps the last modified date of "02.02.2012". After copying the file to my device the date changes to the current date (= 12.06.2012). This happens also when I use the b4a FTP object. It seems that this is a bug in Android (on my tab I use ICS 4.0.3) . This problem came up when I tried to compare the timestamp date as it is provided by the FTP object with the date I get when calling LastModified function. Am I right??
corwin42 Expert Licensed User Longtime User Jun 12, 2012 #2 Why do you think this is a bug? This is normal with FTP file transfers. Upvote 0
prokli Active Member Licensed User Longtime User Jun 12, 2012 #3 I suppose it must be a bug because the timestamp which I get from the FTP object corresponds exactly with the last modified date of the file (the date which I can see when checking this file on my windows PC)!!! This date is also returned as TimeStamp from the FTP object. This is exactly what I expect! But, after copying this file (e.g. via ES FileExplorer) OR uploading via FTP object I get always the date of today when calling: File.LastModified(File.DirDefaultExternal & "/" & "project.txt") It is obviously not a failure of the FTP object!! Upvote 0
I suppose it must be a bug because the timestamp which I get from the FTP object corresponds exactly with the last modified date of the file (the date which I can see when checking this file on my windows PC)!!! This date is also returned as TimeStamp from the FTP object. This is exactly what I expect! But, after copying this file (e.g. via ES FileExplorer) OR uploading via FTP object I get always the date of today when calling: File.LastModified(File.DirDefaultExternal & "/" & "project.txt") It is obviously not a failure of the FTP object!!
HotShoe Well-Known Member Licensed User Longtime User Jun 12, 2012 #4 It's not an OS bug. Windows and Mac do the same thing. It's up to the software doing the copy to update the modified date/time not the OS. --- Jem Upvote 0
It's not an OS bug. Windows and Mac do the same thing. It's up to the software doing the copy to update the modified date/time not the OS. --- Jem