systemadm: format dates in local time

This commit is contained in:
Lennart Poettering 2010-04-24 03:19:36 +02:00
parent 2e2ca209f0
commit 716f158c56
1 changed files with 2 additions and 2 deletions

View File

@ -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();