summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-10-31 14:16:23 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-10-31 14:16:23 +0100
commit4b149b042e97e623e6902b770bbb827cff1986c1 (patch)
tree0d17973f43a27c4d007cae9e56363e59d5fedf2b /application
parent8b3e47e79b189b9e988c65237d24cc0a6337e4f2 (diff)
Fix alignment of date column in plain text view
This got broken by 2a6a1c63cb21015009fe4fd13f62cdac64e1fe36 and 05a4d686b578794c180ddfaf4945a9d7443f330e. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/views/file_plaintext/upload_history.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/views/file_plaintext/upload_history.php b/application/views/file_plaintext/upload_history.php
index f0ed0fa95..f9a14af0b 100644
--- a/application/views/file_plaintext/upload_history.php
+++ b/application/views/file_plaintext/upload_history.php
@@ -1,4 +1,6 @@
<?php
+$dateformat = "r";
+$lengths["date"] = max($lengths["date"], strlen(date($dateformat, time())));
echo
mb_str_pad($fields["id"], $lengths["id"])." | "
.mb_str_pad($fields["filename"], $lengths["filename"])." | "
@@ -12,7 +14,7 @@ foreach($query as $key => $item) {
mb_str_pad($item["id"], $lengths["id"])." | "
.mb_str_pad($item["filename"], $lengths["filename"])." | "
.mb_str_pad($item["mimetype"], $lengths["mimetype"])." | "
- .date("r", $item["date"])." | "
+ .date($dateformat, $item["date"])." | "
.$item["hash"]." | "
.$item["filesize"]."\n";
}