mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Format timestamps
This commit is contained in:
parent
6ae610e2b1
commit
2f7a0b55d6
1 changed files with 2 additions and 2 deletions
|
@ -227,8 +227,8 @@ public class Main {
|
||||||
for (DeviceInfo d : devices) {
|
for (DeviceInfo d : devices) {
|
||||||
System.out.println("Device " + d.getId() + (d.getId() == m.getDeviceId() ? " (this device)" : "") + ":");
|
System.out.println("Device " + d.getId() + (d.getId() == m.getDeviceId() ? " (this device)" : "") + ":");
|
||||||
System.out.println(" Name: " + d.getName());
|
System.out.println(" Name: " + d.getName());
|
||||||
System.out.println(" Created: " + d.getCreated());
|
System.out.println(" Created: " + formatTimestamp(d.getCreated()));
|
||||||
System.out.println(" Last seen: " + d.getLastSeen());
|
System.out.println(" Last seen: " + formatTimestamp(d.getLastSeen()));
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue