summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/ajax/getVersions.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/ajax/getVersions.php')
-rw-r--r--apps/files_versions/ajax/getVersions.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php
index 1d107c1bda0..bee60543339 100644
--- a/apps/files_versions/ajax/getVersions.php
+++ b/apps/files_versions/ajax/getVersions.php
@@ -10,7 +10,14 @@ $source = strip_tags( $source );
if( OCA_Versions\Storage::isversioned( $source ) ) {
$count=5; //show the newest revisions
- $versions = OCA_Versions\Storage::getversions( $source, $count);
+ $versions = OCA_Versions\Storage::getVersions( $source, $count);
+ $versionsFormatted = array();
+
+ foreach ( $versions AS $version ) {
+
+ $versionsFormatted[] = OCP\Util::formatDate( $version );
+
+ }
$versionsSorted = array_reverse( $versions );