lemonbar: Fix local timezone
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user