diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-24 03:19:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-24 03:19:36 +0200 |
commit | 716f158c5697e35a7eefd903eacc61fadfa506d0 (patch) | |
tree | af5975fca744b493089ed77a4064ff2e3d349fea /systemadm.vala | |
parent | 2e2ca209f0242044d405cadde05da92e6dad1a6d (diff) |
systemadm: format dates in local time
Diffstat (limited to 'systemadm.vala')
-rw-r--r-- | systemadm.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/systemadm.vala b/systemadm.vala index 5781c31d2e..167340cc9c 100644 --- a/systemadm.vala +++ b/systemadm.vala @@ -406,14 +406,14 @@ public class MainWindow : Window { uint64 t = unit.active_enter_timestamp; if (t > 0) { - Time timestamp = Time.gm((time_t) (t / 1000000)); + Time timestamp = Time.local((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) { - Time timestamp = Time.gm((time_t) (t / 1000000)); + Time timestamp = Time.local((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(); |