lemonbar: Fix local timezone
This commit is contained in:
@@ -185,7 +185,7 @@ class i3_thread:
|
|||||||
i3_th.thread.join()
|
i3_th.thread.join()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description='Blah blah blah.')
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--debug', action='store_true')
|
parser.add_argument('--debug', action='store_true')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if(args.debug):
|
if(args.debug):
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ class DateTimeModule(LemonModule):
|
|||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
fmt = "%a %d %b %H:%M:%S" if self.secs_mode else "%a %d %b %H:%M"
|
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:
|
if timestr != self.last_out:
|
||||||
self.last_out = timestr
|
self.last_out = timestr
|
||||||
self.out_queue.put('{}\n'.format(timestr))
|
self.out_queue.put('{}\n'.format(timestr))
|
||||||
|
|||||||
Reference in New Issue
Block a user