r4348 remove all instances of formatTimestamp()
authorAaron Dummer <aaron@dummer.info>
Wed, 16 Mar 2011 23:37:24 +0000 (23:37 +0000)
committerAaron Dummer <aaron@dummer.info>
Wed, 16 Mar 2011 23:37:24 +0000 (23:37 +0000)
wwwroot/inc/functions.php
wwwroot/inc/interface.php

index d884a89d3177deb17acb188962a14782723bcbd2..8a81ce4d0bc50d46b3c841250b7ef01d1d185382 100644 (file)
@@ -2267,11 +2267,6 @@ function formatEntityName ($name) {
        return 'invalid';
 }
 
-// Take a MySQL or other generic timestamp and make it prettier
-function formatTimestamp ($timestamp) {
-       return date('n/j/y g:iA', strtotime($timestamp));
-}
-
 // Display hrefs for all of a file's parents. If scissors are requested,
 // prepend cutting button to each of them.
 function serializeFileLinks ($links, $scissors = FALSE)
index 222e1e516d361f26031b5cc8a8be81f3c61367c7..e0f959ea777adca0e3be08b000e4b617666ce58c 100644 (file)
@@ -6269,11 +6269,11 @@ function renderFile ($file_id)
        }
        printf("%s</td></tr>", formatFileSize($file['size']));
        echo "<tr><th width='50%' class=tdright>Created:</th>";
-       printf("<td class=tdleft>%s</td></tr>", formatTimestamp($file['ctime']));
+       printf("<td class=tdleft>%s</td></tr>", $file['ctime']);
        echo "<tr><th width='50%' class=tdright>Modified:</th>";
-       printf("<td class=tdleft>%s</td></tr>", formatTimestamp($file['mtime']));
+       printf("<td class=tdleft>%s</td></tr>", $file['mtime']);
        echo "<tr><th width='50%' class=tdright>Accessed:</th>";
-       printf("<td class=tdleft>%s</td></tr>", formatTimestamp($file['atime']));
+       printf("<td class=tdleft>%s</td></tr>", $file['atime']);
 
        printTagTRs ($file, makeHref(array('page'=>'files', 'tab'=>'default'))."&");
        if (strlen ($file['comment']))