chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2e2ca20
)
systemadm: format dates in local time
author
Lennart Poettering
<lennart@poettering.net>
Sat, 24 Apr 2010 01:19:36 +0000
(
03:19
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 24 Apr 2010 01:19:36 +0000
(
03:19
+0200)
systemadm.vala
patch
|
blob
|
history
diff --git
a/systemadm.vala
b/systemadm.vala
index 5781c31d2eb8a7f934b226dc391f469b2c2383ef..167340cc9ca56251abc37b73f062d3353a5430ed 100644
(file)
--- a/
systemadm.vala
+++ b/
systemadm.vala
@@
-406,14
+406,14
@@
public class MainWindow : Window {
uint64 t = unit.active_enter_timestamp;
if (t > 0) {
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) {
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();
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();