diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-24 03:03:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-24 03:03:43 +0200 |
commit | 9754afb2112faa862654d197833a18a145bb14b0 (patch) | |
tree | 203be37c15ce74d693818977225ea025fb235b1f /systemadm.vala | |
parent | cd1a19e86dacc60930c2bedf02080026706c04b6 (diff) |
systemdadm: format dates in RFC822 style
Diffstat (limited to 'systemadm.vala')
-rw-r--r-- | systemadm.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/systemadm.vala b/systemadm.vala index 423528aa3f..deb1be005a 100644 --- a/systemadm.vala +++ b/systemadm.vala @@ -395,15 +395,15 @@ public class MainWindow : Window { uint64 t = unit.active_enter_timestamp; if (t > 0) { - TimeVal tv = { (long) (t / 1000000), (long) (t % 1000000) }; - unit_active_enter_timestamp_label.set_text_or_na(tv.to_iso8601()); + Time timestamp = Time.gm((time_t) (t / 1000000)); + unit_active_enter_timestamp_label.set_text_or_na(timestamp.format("%a, %d %b %Y %H:%M:%S %z")); } else unit_active_enter_timestamp_label.set_text_or_na(); t = unit.active_exit_timestamp; if (t > 0) { - TimeVal tv = { (long) (t / 1000000), (long) (t % 1000000) }; - unit_active_exit_timestamp_label.set_text_or_na(tv.to_iso8601()); + Time timestamp = Time.gm((time_t) (t / 1000000)); + unit_active_exit_timestamp_label.set_text_or_na(timestamp.format("%a, %d %b %Y %H:%M:%S %z")); } else unit_active_exit_timestamp_label.set_text_or_na(); |