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

@@ -185,7 +185,7 @@ class i3_thread:
i3_th.thread.join()
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Blah blah blah.')
parser = argparse.ArgumentParser()
parser.add_argument('--debug', action='store_true')
args = parser.parse_args()
if(args.debug):

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))