mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +00:00
Use ISO date format because I'm opinionated
This commit is contained in:
parent
00b662b53a
commit
5f47a8149f
File diff suppressed because one or more lines are too long
@ -1059,12 +1059,6 @@ syncthing.filter('clean', function () {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
syncthing.filter('asDate', function() {
|
|
||||||
return function (input) {
|
|
||||||
return new Date(input);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
syncthing.directive('optionEditor', function () {
|
syncthing.directive('optionEditor', function () {
|
||||||
return {
|
return {
|
||||||
restrict: 'C',
|
restrict: 'C',
|
||||||
|
@ -345,7 +345,7 @@
|
|||||||
<tr ng-if="!connections[nodeCfg.NodeID]">
|
<tr ng-if="!connections[nodeCfg.NodeID]">
|
||||||
<th><span class="glyphicon glyphicon-eye-open"></span> <span translate>Last seen</span></th>
|
<th><span class="glyphicon glyphicon-eye-open"></span> <span translate>Last seen</span></th>
|
||||||
<td translate ng-if="stats[nodeCfg.NodeID].LastSeen.indexOf('1970') > -1" class="text-right">Never</td>
|
<td translate ng-if="stats[nodeCfg.NodeID].LastSeen.indexOf('1970') > -1" class="text-right">Never</td>
|
||||||
<td ng-if="stats[nodeCfg.NodeID].LastSeen.indexOf('1970') < 0" class="text-right">{{stats[nodeCfg.NodeID].LastSeen | asDate | date:'short'}}</td>
|
<td ng-if="stats[nodeCfg.NodeID].LastSeen.indexOf('1970') < 0" class="text-right">{{stats[nodeCfg.NodeID].LastSeen | date:"yyyy-MM-dd HH:mm"}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user