lemonbar: Fix local timezone

This commit is contained in:
kuben
2019-12-29 23:09:29 +01:00
committed by Jakub Fojt
parent 5d1b35f18a
commit 5195ae47bc
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ class DateTimeModule(LemonModule):
def run(self):
while True:
fmt = "%a %d %b %H:%M:%S" if self.secs_mode else "%a %d %b %H:%M"
timestr = time.strftime(fmt, time.gmtime())
timestr = time.strftime(fmt, time.localtime())
if timestr != self.last_out:
self.last_out = timestr
self.out_queue.put('{}\n'.format(timestr))