Apply patch supplied in #1235 to add the time to fdate

This commit is contained in:
Damien Churchill 2010-04-19 22:27:12 +01:00
parent fb4bfe7656
commit 283cff7852
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ Deluge.Formatters = {
}
timestamp = timestamp * 1000;
var date = new Date(timestamp);
return String.format('{0}/{1}/{2}', zeroPad(date.getDate(), 2), zeroPad(date.getMonth() + 1, 2), date.getFullYear());
return String.format('{0}/{1}/{2} {3}:{4}:{5}',
zeroPad(date.getDate(), 2), zeroPad(date.getMonth() + 1, 2), date.getFullYear(),
zeroPad(date.getHours()), zeroPad(date.getMinutes()), zeroPad(date.getSeconds()));
},
/**