Use ISO date format because I'm opinionated

This commit is contained in:
Jakob Borg 2014-08-25 15:53:32 +02:00
parent 00b662b53a
commit 5f47a8149f
3 changed files with 3 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -1059,12 +1059,6 @@ syncthing.filter('clean', function () {
};
});
syncthing.filter('asDate', function() {
return function (input) {
return new Date(input);
}
})
syncthing.directive('optionEditor', function () {
return {
restrict: 'C',

View File

@ -345,7 +345,7 @@
<tr ng-if="!connections[nodeCfg.NodeID]">
<th><span class="glyphicon glyphicon-eye-open"></span>&emsp;<span translate>Last seen</span></th>
<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>
</tbody>
</table>