Skip to content
Snippets Groups Projects
Commit 9fe6ab05 authored by Pierre louis Virey's avatar Pierre louis Virey
Browse files

fix: Envoie de la bonne date en format long representant les MilliSecondes

parent 661c03f6
Branches master
No related tags found
No related merge requests found
......@@ -37,7 +37,11 @@ public class FTPFileListService extends FTPService {
FTPFile[] files = f.listFiles(path);
for (FTPFile ftpFile : files) {
String time = ftpFile.getTimestamp().getTime().toString(); //L'heure avec du retard.
// GODLIKE PROGRAMMING
long time = ftpFile.getTimestamp().getTimeInMillis(); //L'heure avec 2h de retard. Donc j'en ajoute 2 à la mains
long hourInMillis = 60 * 60 * 1000;
time += hourInMillis*2;
sb.append("Name: ").append(ftpFile.getName()).append(", ");
sb.append("Path: ").append(path).append("/").append(ftpFile.getName()).append(", ");
sb.append("Type: ").append(ftpFile.getType()).append(", ");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment