Skip to content

Commit 2ccf129

Browse files
authored
Merge pull request #326 from K-Leon/patch-1
Fixing broken mTime on Android 5.x
2 parents 6358828 + e5bee33 commit 2ccf129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/rnfs/RNFSManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public void readDir(String directory, Promise promise) {
312312
for (File childFile : files) {
313313
WritableMap fileMap = Arguments.createMap();
314314

315-
fileMap.putInt("mtime", (int)childFile.lastModified());
315+
fileMap.putDouble("mtime", (double)childFile.lastModified()/1000);
316316
fileMap.putString("name", childFile.getName());
317317
fileMap.putString("path", childFile.getAbsolutePath());
318318
fileMap.putInt("size", (int)childFile.length());

0 commit comments

Comments
 (0)