diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-27 15:05:40 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-27 15:05:40 +0200 |
commit | d5237c42bc0d6f9155629c15904b69b7f60e2e5f (patch) | |
tree | 32604fbc651c730dbad35d0f82fbb53d381df71a /apps/files_versions/templates | |
parent | 2d8a380a21716f619bc38e769876dfa5752e6f68 (diff) | |
download | nextcloud-server-d5237c42bc0d6f9155629c15904b69b7f60e2e5f.tar.gz nextcloud-server-d5237c42bc0d6f9155629c15904b69b7f60e2e5f.zip |
Util::formatDate() expect $timestamp as double
Diffstat (limited to 'apps/files_versions/templates')
-rw-r--r-- | apps/files_versions/templates/history.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_versions/templates/history.php b/apps/files_versions/templates/history.php index 13e104152b7..1b442556421 100644 --- a/apps/files_versions/templates/history.php +++ b/apps/files_versions/templates/history.php @@ -20,13 +20,11 @@ if( isset( $_['message'] ) ) { echo('<p><em>Revert a file to a previous version by clicking on its revert button</em></p><br />'); foreach ( $_['versions'] as $v ) { - echo ' '; - echo OCP\Util::formatDate( $v['version'] ); + echo OCP\Util::formatDate( doubleval($v['version']) ); echo ' <a href="'.OCP\Util::linkTo('files_versions', 'history.php').'?path='.urlencode( $_['path'] ).'&revert='. $v['version'] .'" class="button">Revert</a><br /><br />'; if ( $v['cur'] ) { echo ' (<b>Current</b>)'; } echo '<br /><br />'; - } } |