Ticket #1235: 0001-Add-time-to-the-torrents-added-date-in-WebUI.patch

File 0001-Add-time-to-the-torrents-added-date-in-WebUI.patch, 1.0 KB (added by tobbez, 11 years ago)
  • deluge/ui/web/js/deluge-all/Formatters.js

    From ce4b7ebe07f4d261033582935d0126c33763cc53 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Torbj=C3=B6rn=20L=C3=B6nnemark?= <tobbez@ryara.net>
    Date: Mon, 19 Apr 2010 00:32:00 +0200
    Subject: [PATCH] Add time to the torrents added date in WebUI
    
    ---
     deluge/ui/web/js/deluge-all/Formatters.js |    3 ++-
     1 files changed, 2 insertions(+), 1 deletions(-)
    
    diff --git a/deluge/ui/web/js/deluge-all/Formatters.js b/deluge/ui/web/js/deluge-all/Formatters.js
    index 04a67a4..0811d48 100644
    a b Deluge.Formatters = { 
    5656                } 
    5757                timestamp = timestamp * 1000; 
    5858                var date = new Date(timestamp); 
    59                 return String.format('{0}/{1}/{2}', zeroPad(date.getDate(), 2), zeroPad(date.getMonth() + 1, 2), date.getFullYear()); 
     59                return String.format('{0}/{1}/{2} {3}:{4}:{5}', zeroPad(date.getDate(), 2), zeroPad(date.getMonth() + 1, 2), date.getFullYear(), 
     60                                zeroPad(date.getHours()), zeroPad(date.getMinutes()), zeroPad(date.getSeconds())); 
    6061        }, 
    6162         
    6263        /**