diff --git a/files/index.php b/files/index.php
index 6d237ed615236ae56843f699f7fad2f7c42e56a2..a68ae9c0bb48b68e0e97d5c2ca303e9c3bd7af23 100644
--- a/files/index.php
+++ b/files/index.php
@@ -41,7 +41,7 @@ $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
 
 $files = array();
 foreach( OC_FILES::getdirectorycontent( $dir ) as $i ){
-	$i["date"] = date( $CONFIG_DATEFORMAT, $i["mtime"] );
+	$i["date"] = OC_UTIL::formatDate($i["mtime"] );
 	$files[] = $i;
 }