diff --git a/src/index.html b/src/index.html index 1feb030..b171d8d 100644 --- a/src/index.html +++ b/src/index.html @@ -295,6 +295,7 @@ + diff --git a/src/langs/zh_CN.json b/src/langs/zh_CN.json index e7ca732..f424491 100644 --- a/src/langs/zh_CN.json +++ b/src/langs/zh_CN.json @@ -62,6 +62,7 @@ "Info Hash": "特征值", "Seeders": "种子数", "Connections": "连接数", + "Seed Creation Time": "种子创建时间", "Download Dir": "下载路径", "Address": "地址", "Status": "状态", @@ -119,6 +120,7 @@ "Changes to the settings take effect after refreshing page.": "设置将在页面刷新后生效.", "Type is illegal!": "类型错误!", "format": { + "longdate": "YYYY年MM月DD日 HH:mm:ss", "time.millisecond": "{{value}} 毫秒", "time.milliseconds": "{{value}} 毫秒", "time.second": "{{value}} 秒", diff --git a/src/scripts/config/defaultLanguage.js b/src/scripts/config/defaultLanguage.js index 668e4a0..09cf749 100644 --- a/src/scripts/config/defaultLanguage.js +++ b/src/scripts/config/defaultLanguage.js @@ -66,6 +66,7 @@ 'Info Hash': 'Info Hash', 'Seeders': 'Seeders', 'Connections': 'Connections', + 'Seed Creation Time': 'Seed Creation Time', 'Download Dir': 'Download Dir', 'Address': 'Address', 'Status': 'Status', @@ -123,6 +124,7 @@ 'Changes to the settings take effect after refreshing page.': 'Changes to the settings take effect after refreshing page.', 'Type is illegal!': 'Type is illegal!', 'format': { + 'longdate': 'MM/DD/YYYY HH:mm:ss', 'time.millisecond': '{{value}} Millisecond', 'time.milliseconds': '{{value}} Milliseconds', 'time.second': '{{value}} Second', diff --git a/src/scripts/filters/longDate.js b/src/scripts/filters/longDate.js new file mode 100644 index 0000000..3aef94f --- /dev/null +++ b/src/scripts/filters/longDate.js @@ -0,0 +1,10 @@ +(function () { + 'use strict'; + + angular.module('ariaNg').filter('longDate', ['$translate', 'moment', function ($translate, moment) { + return function (time) { + var format = $translate.instant('format.longdate'); + return moment(time).format(format); + } + }]); +})(); diff --git a/src/views/task-detail.html b/src/views/task-detail.html index 283b6aa..def6963 100644 --- a/src/views/task-detail.html +++ b/src/views/task-detail.html @@ -96,14 +96,6 @@ -